Skip to content
Myr

Add test of unsplit right angle brackets

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

Currently these aren't being parsed successfully so this fails with: ---- test_path stdout ---- thread 'test_path' panicked at 'assertion failed: `(left == right)` left: `"Condition failed: `E::U::<> > E::U::<u8>`"`, right: `"Condition failed: `E::U::<> > E::U::<u8>` (U vs U)"`', tests/test_ensure.rs:332:5 thread 'test_path' panicked at 'assertion failed: `(left == right)` left: `"Condition failed: `E::U::<u8> > E::U`"`, right: `"Condition failed: `E::U::<u8> > E::U` (U vs U)"`', tests/test_ensure.rs:336:5 thread 'test_path' panicked at 'assertion failed: `(left == right)` left: `"Condition failed: `E::U::<u8> > E::U`"`, right: `"Condition failed: `E::U::<u8> > E::U` (U vs U)"`', tests/test_ensure.rs:340:5

authored by David Tolnay · committed by David Tolnay · parent a5a98e0 · Browse files · 1 file+19 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+19 added−0 removed

  • tests:+19 added−0 removed

1 file+19 added−0 removed

modified:tests/test_ensure.rs+19 added
317 unmodified lines
318 assert_err(319 test,320 "Condition failed: `Chain::<'static>::new.t(1) == 2` (1 vs 2)",321 );322323 #[derive(PartialOrd, PartialEq, Debug)]324 enum E<'a, T> {325 #[allow(dead_code)]326 T(&'a T),327 U,328 }329330 #[rustfmt::skip]331 let test = || Ok(ensure!(E::U::<>>E::U::<u8>));332 assert_err(test, "Condition failed: `E::U::<> > E::U::<u8>` (U vs U)");333334 #[rustfmt::skip]335 let test = || Ok(ensure!(E::U::<u8>>E::U));336 assert_err(test, "Condition failed: `E::U::<u8> > E::U` (U vs U)");337338 #[rustfmt::skip]339 let test = || Ok(ensure!(E::U::<u8,>>E::U));340 assert_err(test, "Condition failed: `E::U::<u8> > E::U` (U vs U)");341}342343#[test]344fn test_macro() {
82 unmodified lines