Skip to content

Commit 363e07b

Browse files
Improve test.
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
1 parent a57d053 commit 363e07b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/coretests/tests/panic/location.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ fn location_const_column() {
3434
fn location_debug() {
3535
let f = format!("{:?}", Location::caller());
3636
assert!(f.contains("location.rs"));
37+
assert!(!f.contains("\0"));
38+
assert!(!f.contains("\\0"));
3739
assert!(f.contains("35"));
3840
assert!(f.contains("29"));
3941
}

0 commit comments

Comments
 (0)