Skip to content

Commit

Permalink
Remove use of (@z) array flag, which is unsupported in ZSH 5.0
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
molovo committed Dec 21, 2016
1 parent c239ac7 commit 2980a13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/assertions/in.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
@test 'Test _zunit_assert_in failure' {
run assert 'a' in 'x' 'y' 'z'
assert $state equals 1
assert $output same_as "'a' is not in (x ; y ; z)"
assert $output same_as "'a' is not in (x y z)"
}
2 changes: 1 addition & 1 deletion tests/assertions/not_in.zunit
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
@test 'Test _zunit_assert_not_in failure' {
run assert 'a' not_in 'a' 'b' 'c'
assert $state equals 1
assert $output same_as "'a' is in (a ; b ; c)"
assert $output same_as "'a' is in (a b c)"
}
4 changes: 2 additions & 2 deletions zunit
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function _zunit_assert_in() {

[[ $found -eq 1 ]] && return 0

echo "'$value' is not in (${(@z)array})"
echo "'$value' is not in (${(@f)array})"
exit 1
}

Expand All @@ -132,7 +132,7 @@ function _zunit_assert_not_in() {

[[ $found -eq 0 ]] && return 0

echo "'$value' is in (${(@z)array})"
echo "'$value' is in (${(@f)array})"
exit 1
}

Expand Down

0 comments on commit 2980a13

Please sign in to comment.