Skip to content
Myr

Add test containing field index that looks like float literal

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 645641c · Browse files · 1 file+3 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+3 added−0 removed

  • tests:+3 added−0 removed

1 file+3 added−0 removed

modified:tests/test_ensure.rs+3 added
358 unmodified lines
359360 let test = || Ok(ensure!((2, 3).1 == 2));361 assert_err(test, "Condition failed: `(2, 3).1 == 2` (3 vs 2)");362363 let test = || Ok(ensure!((2, (3, 4)). 1.1 == 2));364 assert_err(test, "Condition failed: `(2, (3, 4)).1.1 == 2` (4 vs 2)");365366 let err = anyhow!("");367 let test = || Ok(ensure!(err.is::<&str>() == false));368 assert_err(369 test,
37 unmodified lines