1
1
mirror of https://github.com/wader/fq.git synced 2024-12-26 15:02:28 +03:00
fq/pkg/interp/assert.jq
Mattias Wadman 970465996c Init
2021-09-12 13:08:42 +02:00

10 lines
178 B
Plaintext

def assert($name; $a; $b):
( if $a == $b then "PASS \($name)\n"
else
( "FAIL \($name) \($a) != \($b)\n"
, (null | halt_error(1))
)
end
, empty
);