|
| 1 | + |
| 2 | +running 6 tests |
| 3 | +test should_panic_with_any_message - should panic ... ok |
| 4 | +test should_panic_with_any_message_does_not_panic - should panic ... FAILED |
| 5 | +test should_panic_with_message - should panic ... ok |
| 6 | +test should_panic_with_message_does_not_panic - should panic ... FAILED |
| 7 | +test should_panic_with_substring_panics_with_incorrect_string - should panic ... FAILED |
| 8 | +test should_panic_with_substring_panics_with_non_string_value - should panic ... FAILED |
| 9 | + |
| 10 | +failures: |
| 11 | + |
| 12 | +---- should_panic_with_any_message_does_not_panic stdout ---- |
| 13 | +note: test did not panic as expected at $DIR/test-should-panic-failed-show-span.rs:22:4 |
| 14 | +---- should_panic_with_message_does_not_panic stdout ---- |
| 15 | +note: test did not panic as expected at $DIR/test-should-panic-failed-show-span.rs:28:4 |
| 16 | +---- should_panic_with_substring_panics_with_incorrect_string stdout ---- |
| 17 | + |
| 18 | +thread 'should_panic_with_substring_panics_with_incorrect_string' panicked at $DIR/test-should-panic-failed-show-span.rs:35:5: |
| 19 | +ZOMGWTFBBQ |
| 20 | +note: panic did not contain expected string |
| 21 | + panic message: `"ZOMGWTFBBQ"`, |
| 22 | + expected substring: `"message"` |
| 23 | +---- should_panic_with_substring_panics_with_non_string_value stdout ---- |
| 24 | + |
| 25 | +thread 'should_panic_with_substring_panics_with_non_string_value' panicked at $DIR/test-should-panic-failed-show-span.rs:41:5: |
| 26 | +Box<dyn Any> |
| 27 | +note: expected panic with string value, |
| 28 | + found non-string value: `TypeId(0x56ced5e4a15bd89050bb9674fa2df013)` |
| 29 | + expected substring: `"message"` |
| 30 | + |
| 31 | +failures: |
| 32 | + should_panic_with_any_message_does_not_panic |
| 33 | + should_panic_with_message_does_not_panic |
| 34 | + should_panic_with_substring_panics_with_incorrect_string |
| 35 | + should_panic_with_substring_panics_with_non_string_value |
| 36 | + |
| 37 | +test result: FAILED. 2 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME |
| 38 | + |
0 commit comments