mirror of
https://github.com/wader/fq.git
synced 2024-11-30 18:08:16 +03:00
9e4f264193
Fixes missing function errors for fq builtins Add includes to fix some other missing function errors Add COMPLETION_TIMEOUT env to increase comepletion timeout during test using -race
14 lines
314 B
Plaintext
14 lines
314 B
Plaintext
include "internal";
|
|
|
|
def log: if env.VERBOSE then printerrln else empty end;
|
|
|
|
def assert($name; $expected; $actual):
|
|
( if $expected == $actual then
|
|
"PASS \($name)" | log
|
|
else
|
|
( "FAIL \($name): expected \($expected) got \($actual)" | printerrln
|
|
, (null | halt_error(1))
|
|
)
|
|
end
|
|
);
|