]> git.lizzy.rs Git - rust.git/commit
Print failure message on all tests that should panic, but don't
authorjohanngan <johanngan.us@gmail.com>
Sun, 10 Jan 2021 07:18:23 +0000 (01:18 -0600)
committerjohanngan <johanngan.us@gmail.com>
Sun, 10 Jan 2021 07:18:23 +0000 (01:18 -0600)
commitb43aa960d0a7d09f137cc6b7f26605f6183cd72f
treec9b3984ccc52f78dd164c9e91fcaaf8ea4ee3a79
parent7cf205610e1310897f43b35713a42459e8b40c64
Print failure message on all tests that should panic, but don't

This already happens with should_panic tests without an expected
message. This commit fixes should_panic tests with an expected message
to have the same behavior.
library/test/src/test_result.rs
library/test/src/tests.rs