Test.say: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/test.bend as Test Lines 26-35 of ezx@1.11.0.0/src/ez/test.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/test.bend&start_line=26&end_line=35 import Base import ezx@1.11.0.0/src/ez/prove.bend as P # a comparison that held says nothing. One that did not prints both sides in # full: a diff is real work in Bend, and for a handful of short lines the pair # reads better than one would. def say(ok: Bool, name: String, want: String, got: String) -> IO(Unit): match ok: case True{}: IO.pure(Unit, Unit{}) case False{}: IO.write("FAIL: " ++ name ++ "\n expected:\n" ++ P.indent(want) ++ " observed:\n" ++ P.indent(got)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.write https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/prove.bend&name=indent