Skip to content

Commit 2e759c1

Browse files
committed
fix tests
I inspected the results, seems good
1 parent d55a9a2 commit 2e759c1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/test/misc.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ fn empty_definite_guidance() {
749749
} yields[SolverChoice::slg_default()] {
750750
expect![["Unique"]]
751751
} yields[SolverChoice::recursive_default()] {
752-
expect![["Ambiguous; suggested substitution []"]]
752+
expect![[r#"Unique"#]]
753753
}
754754
}
755755
}
@@ -812,8 +812,10 @@ fn env_bound_vars() {
812812
WellFormed(&'a ())
813813
}
814814
}
815-
} yields {
815+
} yields[SolverChoice::slg_default()] {
816816
expect![["Ambiguous; definite substitution for<?U0> { [?0 := '^0.0] }"]]
817+
} yields[SolverChoice::recursive_default()] {
818+
expect![[r#"Unique; for<?U0> { substitution [?0 := '^0.0] }"#]]
817819
}
818820
goal {
819821
exists<'a> {
@@ -841,7 +843,7 @@ fn recursive_hang() {
841843
} yields[SolverChoice::slg_default()] {
842844
expect![["Ambiguous; definite substitution for<?U0,?U0> { [?0 := ^0.0, ?1 := '^0.1] }"]]
843845
} yields[SolverChoice::recursive_default()] {
844-
expect![["Ambiguous; suggested substitution for<?U0,?U0> { [?0 := ^0.0, ?1 := '^0.1] }"]]
846+
expect![[r#"Ambiguous; no inference guidance"#]]
845847
}
846848
}
847849
}

tests/test/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,11 @@ fn solve_aggregated(
394394
.expect("Test requires at least one solver");
395395
for (i, other) in tail.iter().enumerate() {
396396
println!(
397-
"\ncomparing solvers:\n\tleft: {:?}\n\tright: {:?}\n",
397+
"\ncomparing solvers:\n\texpected: {:?}\n\tactual: {:?}\n",
398398
&choices[0],
399399
&choices[i + 1]
400400
);
401-
assert_same(head, other);
401+
assert_same(other, head);
402402
}
403403

404404
expected.assert_eq(head);

0 commit comments

Comments
 (0)