Skip to content

Commit

Permalink
Merge pull request #211 from dtolnay/ensuretest
Browse files Browse the repository at this point in the history
Update ensure tests to nightly-2021-12-10
  • Loading branch information
dtolnay committed Dec 10, 2021
2 parents 3c4c299 + 2a72017 commit d40fd32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ensure.rs
Expand Up @@ -192,14 +192,14 @@ fn test_loop() {
let test = || Ok(ensure!(1 + loop { break 1 } == 1));
assert_err(
test,
"Condition failed: `1 + loop { break 1 } == 1` (2 vs 1)",
"Condition failed: `1 + loop { break 1 } == 1` (2 vs 1)",
);

#[rustfmt::skip]
let test = || Ok(ensure!(1 + 'a: loop { break 'a 1 } == 1));
assert_err(
test,
"Condition failed: `1 + 'a: loop { break 'a 1 } == 1` (2 vs 1)",
"Condition failed: `1 + 'a: loop { break 'a 1 } == 1` (2 vs 1)",
);

#[rustfmt::skip]
Expand Down

0 comments on commit d40fd32

Please sign in to comment.