Ratio addition now works

This commit is contained in:
Simon Brooke 2018-12-23 20:54:57 +00:00
parent 4c9fdfc3db
commit 813b24406d
4 changed files with 72 additions and 33 deletions

View file

@ -0,0 +1,12 @@
#!/bin/bash
expected='1/4'
actual=`echo "(+ 3/14 1/28)" | target/psse 2> /dev/null | head -2 | tail -1`
if [ "${expected}" = "${actual}" ]
then
echo "OK"
else
echo "Fail: expected '${expected}', got '${actual}'"
exit 1
fi