From 796a4cdc910104297019cfb7ebf5a282708c9c50 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 12 Jun 2020 23:50:36 +0100 Subject: [PATCH] Added some expected-error tests --- src/tests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests.sh b/src/tests.sh index f111e4e..7c4dd18 100755 --- a/src/tests.sh +++ b/src/tests.sh @@ -156,6 +156,14 @@ endBlock title "ShouldError" check "LenOfNotList" "(len 5)" "NOT_A_LIST" +check "NoMapList" "(map sq)" "( )" +check "UnevenLists" "(+ (1 2) (1 2 3))" "LISTS_NOT_SAME_SIZE" +check "BadSymbol" "(5df)" "SYMBOLS_START_WITH_LETTERS" +check "BadParens" "(hey()" "MISMATCHED_PARENS" +check "BadParens2" "(hey)(" "MISMATCHED_PARENS" +check "BadParens3" "((hey(" "MISMATCHED_PARENS" +check "BadParens4" ")))hey" "MISMATCHED_PARENS" +check "BadParens5" "hey))(" "MISMATCHED_PARENS" endBlock # title "Environment"