From 1a605a764858e5de07acbce7ed7e8cecd2922f6e Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 14 Jun 2014 00:40:43 -0400 Subject: [PATCH] Test cases now using `assert` --- test/ns/test-@::-multi.sh | 4 ++-- test/ns/test-@::-nons.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ns/test-@::-multi.sh b/test/ns/test-@::-multi.sh index 71163fe..eec1d81 100644 --- a/test/ns/test-@::-multi.sh +++ b/test/ns/test-@::-multi.sh @@ -44,12 +44,12 @@ foo::bar::baz::next() foo::bar::baz::try "${expected[@]}" set -- "${given[@]}" -test $# -eq "${#expected[@]}" +assert $# -eq "${#expected[@]}" # all arguments should be passed, properly quoted declare -i i=0 while true; do - test "$1" == "${expected[i]}" + assert "$1" == "${expected[i]}" shift || break ((++i)) done diff --git a/test/ns/test-@::-nons.sh b/test/ns/test-@::-nons.sh index 07b5988..02171d0 100644 --- a/test/ns/test-@::-nons.sh +++ b/test/ns/test-@::-nons.sh @@ -44,12 +44,12 @@ next() try "${expected[@]}" set -- "${given[@]}" -test $# -eq "${#expected[@]}" +assert $# -eq "${#expected[@]}" # all arguments should be passed, properly quoted declare -i i=0 while true; do - test "$1" == "${expected[i]}" + assert "$1" == "${expected[i]}" shift || break ((++i)) done