Fix test 1.

This commit is contained in:
2025-12-10 13:52:12 +01:00
parent 4b3bf0cfac
commit abfb1aee89

View File

@@ -18,8 +18,10 @@ tests=0
passed=0
((tests++))
echo -n "${tests}: Find 5th prime number..."
if [[ $("$BINARY" 5) == 11 ]]
echo -n "${tests}: Find all prime numbers before 70..."
expect="2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 "
if [ "$("$BINARY" -v 70 | tr '\n' ' ')" = "$expect" ]
then
echo " pass"
((passed++))