File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ fn debug_string[T : Show](t : T) -> String {
48
48
/// ```
49
49
pub fn assert_eq [T : Eq + Show ](a : T , b : T , loc ~ : SourceLoc = _ ) -> Unit ! {
50
50
if a != b {
51
- fail! ("`\{ a } == \{ b } `" )
51
+ fail! ("`\{ a } == \{ b } `" , loc ~ )
52
52
}
53
53
}
54
54
@@ -86,7 +86,7 @@ pub fn assert_not_eq[T : Eq + Show](
86
86
if not (a != b ) {
87
87
let a = debug_string (a )
88
88
let b = debug_string (b )
89
- fail! ("`\{ a } != \{ b } `" )
89
+ fail! ("`\{ a } != \{ b } `" , loc ~ )
90
90
}
91
91
}
92
92
@@ -116,7 +116,7 @@ pub fn assert_not_eq[T : Eq + Show](
116
116
/// ```
117
117
pub fn assert_true (x : Bool , loc ~ : SourceLoc = _ ) -> Unit ! {
118
118
if not (x ) {
119
- fail! ("`\{ x } ` is not true" )
119
+ fail! ("`\{ x } ` is not true" , loc ~ )
120
120
}
121
121
}
122
122
@@ -148,6 +148,6 @@ pub fn assert_true(x : Bool, loc~ : SourceLoc = _) -> Unit! {
148
148
pub fn assert_false (x : Bool , loc ~ : SourceLoc = _ ) -> Unit ! {
149
149
if x {
150
150
let x = debug_string (x )
151
- fail! ("`\{ x } ` is not false" )
151
+ fail! ("`\{ x } ` is not false" , loc ~ )
152
152
}
153
153
}
You can’t perform that action at this time.
0 commit comments