Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/Test/Property/TestListSet.flix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mod JonathanStarup.Test.Property.TestListSet {
use JonathanStarup.ListSet
use JonathanStarup.Test.Property.ListSetGenerator
use Abort.abort
use Formattable.format

def runCrash(f: Unit -> Unit \ ef): Bool \ ef + IO - Abort =
run {f(); true} with handler Abort {
Expand All @@ -29,12 +30,12 @@ mod JonathanStarup.Test.Property.TestListSet {

def _assertEq(x: t, y: t): Unit \ Abort with Eq[t], ToString[t] = {
if (x == y) ()
else abort("${x} != ${y}")
else abort(format("${x} != ${y}"))
}

def assertExpect(expect: {expect = t}, actual: t): Unit \ Abort with Eq[t], ToString[t] = {
if (expect#expect == actual) ()
else abort("found ${actual} but expected ${expect#expect}")
else abort(format("found ${actual} but expected ${expect#expect}"))
}

def runTest(
Expand Down
Loading