You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
216 B
Fish
10 lines
216 B
Fish
9 years ago
|
function assert --wraps test
|
||
|
if builtin test $argv
|
||
|
emit assertion_success
|
||
|
else
|
||
|
set -l assertion_status $status
|
||
|
emit assertion_error (assert.error_message $argv)
|
||
|
return $assertion_status
|
||
|
end
|
||
|
end
|