git @ Cat's Eye Technologies Nhohnhehr / 3b4c6c3
Add a rudimentary sanity test. Cat's Eye Technologies 8 years ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 #!/bin/sh
1
2 # Just a rudimentary sanity test, better than nothing.
3
4 EXPECTED='110101010101011111111'
5 R=`echo '11111110000001' | src/nhohnhehr.py bits eg/reverse-esque.nho`
6 if [ $R = $EXPECTED ]; then
7 echo 'Sanity test passed.'
8 else
9 echo "Expected $EXPECTED but got $R."
10 exit 1
11 fi