zunit-zsh.zunit/tests/assertions/is_not_empty.zunit
2016-12-21 20:01:54 +00:00

14 lines
311 B
Bash

#!/usr/bin/env zunit
@test 'Test _zunit_assert_is_not_empty success' {
run assert 'notempty' is_not_empty
assert $state equals 0
assert $output is_empty
}
@test 'Test _zunit_assert_is_not_empty failure' {
run assert '' is_not_empty
assert $state equals 1
assert $output same_as "value is empty"
}