Skip to content

Commit 26155d1

Browse files
committed
Improve test.
1 parent a57d053 commit 26155d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/coretests/tests/panic/location.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn location_const_column() {
3333
#[test]
3434
fn location_debug() {
3535
let f = format!("{:?}", Location::caller());
36-
assert!(f.contains("location.rs"));
36+
assert!(f.contains(&format!("{:?}", file!())));
3737
assert!(f.contains("35"));
3838
assert!(f.contains("29"));
3939
}

0 commit comments

Comments
 (0)