post-scarcity/unit-tests/quote.sh

14 lines
240 B
Bash

#!/bin/bash
expected='Fred'
actual=`echo "'Fred" | 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