All unit tests now pass

This commit is contained in:
Simon Brooke 2018-12-23 14:16:51 +00:00
parent 3c0c1515af
commit 98120d045b
2 changed files with 17 additions and 6 deletions

13
unit-tests/nlambda.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
expected='a'
actual=`echo "((nlambda (x) x) a)" | target/psse 2> /dev/null | head -2 | tail -1`
if [ "${expected}" = "${actual}" ]
then
echo "OK"
exit 0
else
echo "Fail: expected '${expected}', got '${actual}'"
exit 1
fi