1
1
mirror of https://github.com/wader/fq.git synced 2024-11-27 06:04:47 +03:00
fq/pkg/interp/assert.jq

10 lines
178 B
Plaintext
Raw Normal View History

2020-06-08 03:29:51 +03:00
def assert($name; $a; $b):
( if $a == $b then "PASS \($name)\n"
else
( "FAIL \($name) \($a) != \($b)\n"
, (null | halt_error(1))
)
end
, empty
);