Commit acd2d0a0 authored by Vojtěch Horký's avatar Vojtěch Horký
Browse files

Let 23 fail if no files were submitted

parent cace3f9d
......@@ -16,6 +16,13 @@ load "../../nswi177"
fi
}
@test "23 - Three .txt files (0)" {
file_count="$( find 23 -type f -name '[a-zA-Z].txt' -printf '.' | wc -c )"
if [ "$file_count" -ne 3 ]; then
fail "Expecting 3 files in 23/ matching [a-zA-Z].txt"
fi
}
@test "23 - Reasonable content (0)" {
errors=()
for filename in 23/[a-zA-Z].txt; do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment