post-scarcity/unit-tests/eval-integer.sh

13 lines
206 B
Bash
Executable file

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