All unit tests now pass
This commit is contained in:
parent
3c0c1515af
commit
98120d045b
13
unit-tests/nlambda.sh
Normal file
13
unit-tests/nlambda.sh
Normal 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
|
|
@ -1,17 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
log=log.$$
|
||||
value='"Fred"'
|
||||
expected="String cell: character 'F' (70)"
|
||||
echo ${value} | target/psse -d > ${log} 2>/dev/null
|
||||
grep "${expected}" ${log} > /dev/null
|
||||
expected="String cell: character 'F'"
|
||||
# set! protects "Fred" from the garbage collector.
|
||||
actual=`echo "(set! x ${value})" | target/psse -d 2>&1 | grep "$expected" | sed 's/ *\(.*\) next.*$/\1/'`
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
echo "OK"
|
||||
rm ${log}
|
||||
exit 0
|
||||
else
|
||||
echo "Expected '${expected}', not found in ${log}"
|
||||
echo "Fail: expected '${expected}', got '${actual}'"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue