naiive to_not_include implementation

This commit is contained in:
Bruno Pinto 2015-01-10 15:36:57 -02:00
parent 8d7ccec672
commit e0bb27831d

View File

@ -20,5 +20,15 @@ function expect
else else
emit assertion_failure "Expected \"$list\" to include \"$item\"" emit assertion_failure "Expected \"$list\" to include \"$item\""
end 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
end end