Ground REPL

This commit is contained in:
2026-03-19 16:00:46 +11:00
parent 2df8d2848d
commit fd118369d3
9 changed files with 79 additions and 11 deletions

View File

@@ -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
View File

@@ -0,0 +1,2 @@
set &x 5
PAUSE

View File

@@ -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