post-scarcity/unit-tests/apply.sh

14 lines
225 B
Bash
Executable file

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