From abfb1aee8904c4b3888fd980501adadb150f61a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Wed, 10 Dec 2025 13:52:12 +0100 Subject: [PATCH] Fix test 1. --- test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test.sh b/test.sh index 5e795f4..a56f25f 100755 --- a/test.sh +++ b/test.sh @@ -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++))