mirror of
https://github.com/wader/fq.git
synced 2024-11-30 09:58:13 +03:00
10 lines
239 B
Plaintext
10 lines
239 B
Plaintext
def assert($name; $expected; $actual):
|
|
( if $expected == $actual then
|
|
"PASS \($name)\n" | stderr
|
|
else
|
|
( "FAIL \($name): expected \($expected) got \($actual)\n" | stderr
|
|
, (null | halt_error(1))
|
|
)
|
|
end
|
|
);
|