post-scarcity/unit-tests/fred.sh
Simon Brooke 2d9f4b0439 All unit tests passing! This is slightly a fix because there is a bug with
the character read after reading a number not being correctly pushed back
onto the input stream, but...
2017-01-07 12:24:54 +00:00

14 lines
222 B
Bash

#!/bin/bash
expected='"Fred"'
actual=`echo ${expected} | target/psse 2> /dev/null`
if [ "${expected}" = "${actual}" ]
then
echo "OK"
exit 0
else
echo "Fail: expected '$expected', got '$actual'"
exit 1
fi