fix unification test

This commit is contained in:
Michael Sippel 2025-02-25 22:57:50 +01:00
parent c60d55adba
commit a6a6677920
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -173,12 +173,12 @@ fn test_subtype_unification() {
UnificationProblem::new(vec![
(dict.parse("<Seq T>").unwrap(),
dict.parse("<Seq W~<Seq Char>>").unwrap()),
(dict.parse("<Seq ~<PosInt 10 BigEndian>>").unwrap(),
dict.parse("<Seq~<LengthPrefix x86.UInt64> W>").unwrap()),
(dict.parse("<Seq~<LengthPrefix x86.UInt64> ~<PosInt 10 BigEndian>>").unwrap(),
dict.parse("<<LengthPrefix x86.UInt64> W>").unwrap()),
]).solve_subtype(),
Ok((
dict.parse("
<Seq~<LengthPrefix x86.UInt64> ~<PosInt 10 BigEndian>>
<Seq ~<PosInt 10 BigEndian>>
").unwrap(),
vec![
// W