This commit is contained in:
Dan Buch
2016-04-13 12:07:56 -04:00
parent b15e1ad794
commit a8c603e8e5
3 changed files with 122 additions and 20 deletions

View File

@@ -18,6 +18,14 @@ test_ex17-ec() {
echo "OK"
}
test_ex18() {
local output=$(./ex18 4 1 7 3 2 0 8)
[[ "${output}" =~ '0 1 2 3 4 7 8' ]]
[[ "${output}" =~ '8 7 4 3 2 1 0' ]]
[[ "${output}" =~ '3 4 2 7 1 0 8' ]]
echo "OK"
}
main() {
for ex in $(./list-exercises) ; do
func_name="test_${ex}"