diff --git a/builtin/assert.mbt b/builtin/assert.mbt index ddc071b4e..a9d098147 100644 --- a/builtin/assert.mbt +++ b/builtin/assert.mbt @@ -48,7 +48,7 @@ fn debug_string[T : Show](t : T) -> String { /// ``` pub fn assert_eq[T : Eq + Show](a : T, b : T, loc~ : SourceLoc = _) -> Unit! { if a != b { - fail!("`\{a} == \{b}`",loc~) + fail!("`\{a} == \{b}`", loc~) } } @@ -86,7 +86,7 @@ pub fn assert_not_eq[T : Eq + Show]( if not(a != b) { let a = debug_string(a) let b = debug_string(b) - fail!("`\{a} != \{b}`",loc~) + fail!("`\{a} != \{b}`", loc~) } } @@ -116,7 +116,7 @@ pub fn assert_not_eq[T : Eq + Show]( /// ``` pub fn assert_true(x : Bool, loc~ : SourceLoc = _) -> Unit! { if not(x) { - fail!("`\{x}` is not true",loc~) + fail!("`\{x}` is not true", loc~) } } @@ -148,6 +148,6 @@ pub fn assert_true(x : Bool, loc~ : SourceLoc = _) -> Unit! { pub fn assert_false(x : Bool, loc~ : SourceLoc = _) -> Unit! { if x { let x = debug_string(x) - fail!("`\{x}` is not false",loc~) + fail!("`\{x}` is not false", loc~) } }