Lines Matching refs:assert_err

45 fn assert_err<T: Debug>(result: impl FnOnce() -> Result<T>, expected: &'static str) {  in assert_err()  function
95 assert_err(test, "Condition failed: `false == true && false`"); in test_low_precedence_binary_operator()
99 assert_err( in test_low_precedence_binary_operator()
111 assert_err(test, "Condition failed: `S + (move || 1 == 1)`"); in test_closure()
114 assert_err(test, "Condition failed: `S + (|| 1 == 1)`"); in test_closure()
119 assert_err(test, "Condition failed: `S + (move |()| 1 == 1)`"); in test_closure()
122 assert_err(test, "Condition failed: `S + (|()| 1 == 1)`"); in test_closure()
129 assert_err(test, "Condition failed: `*x == 2` (1 vs 2)"); in test_unary()
132 assert_err(test, "Condition failed: `!x == 1` (-2 vs 1)"); in test_unary()
135 assert_err(test, "Condition failed: `-x == 1` (-1 vs 1)"); in test_unary()
138 assert_err(test, "Condition failed: `&x == &&2` (1 vs 2)"); in test_unary()
141 assert_err(test, "Condition failed: `&mut x == *&&mut &2` (1 vs 2)"); in test_unary()
148 assert_err(test, "Condition failed: `if false { }.t(1) == 2` (1 vs 2)"); in test_if()
152 assert_err( in test_if()
159 assert_err( in test_if()
166 assert_err( in test_if()
173 assert_err( in test_if()
180 assert_err( in test_if()
190 assert_err( in test_loop()
199 assert_err( in test_loop()
208 assert_err( in test_loop()
215 assert_err( in test_loop()
222 assert_err( in test_loop()
229 assert_err( in test_loop()
236 assert_err( in test_loop()
246 assert_err( in test_match()
255 assert_err( in test_atom()
262 assert_err(test, "Condition failed: `{ let x = 1; x } >= 3` (1 vs 3)"); in test_atom()
265 assert_err( in test_atom()
271 assert_err( in test_atom()
278 assert_err( in test_atom()
287 assert_err(test, "Condition failed: `crate::S.t(1) == 2` (1 vs 2)"); in test_path()
290 assert_err( in test_path()
296 assert_err( in test_path()
303 assert_err( in test_path()
309 assert_err( in test_path()
315 assert_err( in test_path()
322 assert_err( in test_path()
336 assert_err(test, "Condition failed: `E::U::<> > E::U::<u8>` (U vs U)"); in test_path()
340 assert_err(test, "Condition failed: `E::U::<u8> > E::U` (U vs U)"); in test_path()
344 assert_err(test, "Condition failed: `E::U::<u8> > E::U` (U vs U)"); in test_path()
347 assert_err( in test_path()
353 assert_err( in test_path()
364 assert_err( in test_path()
373 assert_err( in test_macro()
379 assert_err(test, "Condition failed: `vec![1].len() < 1` (1 vs 1)"); in test_macro()
382 assert_err( in test_macro()
391 assert_err(test, "Condition failed: `(|| 1)() == 2` (1 vs 2)"); in test_trailer()
394 assert_err(test, "Condition failed: `b\"hmm\"[1] == b'c'` (109 vs 99)"); in test_trailer()
397 assert_err( in test_trailer()
404 assert_err(test, "Condition failed: `result? == 2` (1 vs 2)"); in test_trailer()
407 assert_err(test, "Condition failed: `(2, 3).1 == 2` (3 vs 2)"); in test_trailer()
411 assert_err(test, "Condition failed: `(2, (3, 4)).1.1 == 2` (4 vs 2)"); in test_trailer()
415 assert_err( in test_trailer()
421 assert_err( in test_trailer()
437 assert_err( in test_whitespace()
446 assert_err( in test_too_long()
452 assert_err(test, "Condition failed: `\"\" == \"x\".repeat(80)`"); in test_too_long()
458 assert_err(test, "Condition failed: `'\\0' as u8 > 1` (0 vs 1)"); in test_as()
461 assert_err( in test_as()
467 assert_err( in test_as()
473 assert_err( in test_as()
480 assert_err(test, "Condition failed: `s as &str != s` (\"\" vs \"\")"); in test_as()
483 assert_err(test, "Condition failed: `&s as &&str != &s` (\"\" vs \"\")"); in test_as()
486 assert_err( in test_as()
492 assert_err( in test_as()
499 assert_err( in test_as()
505 assert_err( in test_as()
511 assert_err( in test_as()
518 assert_err( in test_as()
524 assert_err( in test_as()
530 assert_err( in test_as()
536 assert_err( in test_as()
543 assert_err( in test_as()
551 assert_err( in test_as()
558 assert_err( in test_as()
575 assert_err( in test_as()
585 assert_err( in test_as()
597 assert_err(test, "Condition failed: `0 as int!(...) != 0` (0 vs 0)"); in test_as()
600 assert_err(test, "Condition failed: `0 as int![...] != 0` (0 vs 0)"); in test_as()
603 assert_err(test, "Condition failed: `0 as int! { ... } != 0` (0 vs 0)"); in test_as()
609 assert_err( in test_pat()
615 assert_err( in test_pat()
621 assert_err( in test_pat()
627 assert_err( in test_pat()
633 assert_err( in test_pat()
639 assert_err( in test_pat()
645 assert_err( in test_pat()
651 assert_err( in test_pat()
658 assert_err( in test_pat()
664 assert_err( in test_pat()
670 assert_err( in test_pat()
676 assert_err( in test_pat()
682 assert_err( in test_pat()