coverage: Regression test for assert!(!false)
This commit is contained in:
parent
1c6a06183a
commit
bc77717d68
3 changed files with 39 additions and 0 deletions
12
tests/coverage/assert_not.coverage
Normal file
12
tests/coverage/assert_not.coverage
Normal file
|
@ -0,0 +1,12 @@
|
|||
LL| |// edition: 2021
|
||||
LL| |
|
||||
LL| |// Regression test for <https://github.com/rust-lang/rust/issues/118904>.
|
||||
LL| |// `assert!(true)` and `assert!(!false)` should have similar coverage spans.
|
||||
LL| |
|
||||
LL| 1|fn main() {
|
||||
LL| 1| assert!(true);
|
||||
LL| 1| assert!(!false);
|
||||
LL| 1| assert!(!!true);
|
||||
LL| 1| assert!(!!!false);
|
||||
LL| 1|}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue