Skip to content

Commit

Permalink
moon fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
illusory0x0 authored and bobzhang committed Feb 7, 2025
1 parent d8a4419 commit f987b54
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builtin/assert.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -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~)
}
}

Expand Down Expand Up @@ -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~)
}
}

Expand Down Expand Up @@ -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~)
}
}

Expand Down Expand Up @@ -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~)
}
}

0 comments on commit f987b54

Please sign in to comment.