Skip to content
Myr

Add test of long debug

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent f506623 · Browse files · 1 file+12 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+12 added−0 removed

  • tests:+12 added−0 removed

1 file+12 added−0 removed

modified:tests/test_ensure.rs+12 added
363 unmodified lines
364 test,365 "Condition failed: `err.is::<<str as ToOwned>::Owned>() == true` (false vs true)",366 );367}368369#[test]370fn test_too_long() {371 let test = || Ok(ensure!("" == "x".repeat(10)));372 assert_err(373 test,374 "Condition failed: `\"\" == \"x\".repeat(10)` (\"\" vs \"xxxxxxxxxx\")",375 );376377 let test = || Ok(ensure!("" == "x".repeat(80)));378 assert_err(test, "Condition failed: `\"\" == \"x\".repeat(80)`");379}