mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-03 15:40:32 +00:00
naiive to_not_include implementation
This commit is contained in:
parent
8d7ccec672
commit
e0bb27831d
@ -20,5 +20,15 @@ function expect
|
||||
else
|
||||
emit assertion_failure "Expected \"$list\" to include \"$item\""
|
||||
end
|
||||
|
||||
case 'to_not_include'
|
||||
set -l item $actual
|
||||
set -l list $expected
|
||||
|
||||
if not contains -- "$item" $list
|
||||
emit assertion_success
|
||||
else
|
||||
emit assertion_failure "Expected \"$list\" to not include \"$item\""
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user