File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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 {
4848/// ```
4949pub fn assert_eq [T : Eq + Show ](a : T , b : T , loc ~ : SourceLoc = _ ) -> Unit ! {
5050 if a != b {
51- fail! ("`\{ a } == \{ b } `" ,loc ~)
51+ fail! ("`\{ a } == \{ b } `" , loc ~)
5252 }
5353}
5454
@@ -86,7 +86,7 @@ pub fn assert_not_eq[T : Eq + Show](
8686 if not (a != b ) {
8787 let a = debug_string (a )
8888 let b = debug_string (b )
89- fail! ("`\{ a } != \{ b } `" ,loc ~)
89+ fail! ("`\{ a } != \{ b } `" , loc ~)
9090 }
9191}
9292
@@ -116,7 +116,7 @@ pub fn assert_not_eq[T : Eq + Show](
116116/// ```
117117pub fn assert_true (x : Bool , loc ~ : SourceLoc = _ ) -> Unit ! {
118118 if not (x ) {
119- fail! ("`\{ x } ` is not true" ,loc ~)
119+ fail! ("`\{ x } ` is not true" , loc ~)
120120 }
121121}
122122
@@ -148,6 +148,6 @@ pub fn assert_true(x : Bool, loc~ : SourceLoc = _) -> Unit! {
148148pub fn assert_false (x : Bool , loc ~ : SourceLoc = _ ) -> Unit ! {
149149 if x {
150150 let x = debug_string (x )
151- fail! ("`\{ x } ` is not false" ,loc ~)
151+ fail! ("`\{ x } ` is not false" , loc ~)
152152 }
153153}
You can’t perform that action at this time.
0 commit comments