Skip to content

Commit 6ee4489

Browse files
committed
Update tests
1 parent 9980d0e commit 6ee4489

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/test/mir_fn_bodies.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,16 @@ fn test_invalid_value_in_switch_terminator() {
657657
}
658658
]
659659
[]
660-
expect_test::expect!["The value used for switch must be an int."]
660+
expect_test::expect![[r#"
661+
judgment `prove { goal: {@ is_int(bool)}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] }, decls: decls(222, [], [], [], [], [], [], {}, {}) }` failed at the following rule(s):
662+
failed at (src/file.rs:LL:CC) because
663+
judgment `prove_wc_list { goal: {@ is_int(bool)}, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
664+
the rule "some" failed at step #0 (src/file.rs:LL:CC) because
665+
judgment `prove_wc { goal: @ is_int(bool), assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
666+
the rule "ty is int" failed at step #0 (src/file.rs:LL:CC) because
667+
judgment `is_int { goal: bool, assumptions: {}, env: Env { variables: [], bias: Soundness, pending: [] } }` failed at the following rule(s):
668+
the rule "is int" failed at step #0 (src/file.rs:LL:CC) because
669+
condition evaluted to false: `id.is_int()`
670+
id = bool"#]]
661671
)
662672
}

0 commit comments

Comments
 (0)