mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-17 09:26:08 +00:00
10 lines
216 B
Fish
10 lines
216 B
Fish
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
|