post-scarcity/unit-tests/nlambda.sh

14 lines
228 B
Bash
Executable file

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