Fix test 1.
This commit is contained in:
6
test.sh
6
test.sh
@@ -18,8 +18,10 @@ tests=0
|
|||||||
passed=0
|
passed=0
|
||||||
|
|
||||||
((tests++))
|
((tests++))
|
||||||
echo -n "${tests}: Find 5th prime number..."
|
echo -n "${tests}: Find all prime numbers before 70..."
|
||||||
if [[ $("$BINARY" 5) == 11 ]]
|
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
|
then
|
||||||
echo " pass"
|
echo " pass"
|
||||||
((passed++))
|
((passed++))
|
||||||
|
|||||||
Reference in New Issue
Block a user