forked from ground/ground
Ground REPL
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
[hello, there, general, kenobi][hello, there, general, kenobi][hello, there, general, hello]
|
||||
hello
|
||||
there
|
||||
general
|
||||
Nqb˜V
|
||||
2
tests/pause.grnd
Normal file
2
tests/pause.grnd
Normal file
@@ -0,0 +1,2 @@
|
||||
set &x 5
|
||||
PAUSE
|
||||
@@ -15,7 +15,7 @@ for f in *.grnd; do
|
||||
ground "$f" > log.txt
|
||||
|
||||
FILE="log.txt"
|
||||
FAILED="\033[31mFailed:\n\033[0m"
|
||||
FAILED="\033[31mFailed\n\033[0m"
|
||||
if [[ "$f" == "closure.grnd" ]]; then
|
||||
if !(cmp -s "$FILE" <(printf "13 10\n"));
|
||||
then printf $FAILED
|
||||
@@ -76,5 +76,6 @@ for f in *.grnd; do
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
rm log.txt
|
||||
printf "\033[32mAll tests passed!\n\033[0m"
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user