mirror of
https://github.com/wader/fq.git
synced 2024-12-29 16:42:06 +03:00
12 lines
289 B
Plaintext
12 lines
289 B
Plaintext
def log: if env.VERBOSE then stderr else empty end;
|
|
|
|
def assert($name; $expected; $actual):
|
|
( if $expected == $actual then
|
|
"PASS \($name)\n" | log
|
|
else
|
|
( "FAIL \($name): expected \($expected) got \($actual)\n" | stderr
|
|
, (null | halt_error(1))
|
|
)
|
|
end
|
|
);
|