Can now read files from the filesystem.

This commit is contained in:
Simon Brooke 2019-01-27 18:54:23 +00:00
parent d9acb277bf
commit 3470f27585
3 changed files with 34 additions and 7 deletions

13
unit-tests/slurp.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
expected='"Hello, this is used by `slurp.sh` test, please do not remove.'
actual=`echo '(slurp (open "hi"))' | target/psse | tail -2 | head -1`
if [ "${expected}" = "${actual}" ]
then
echo "OK"
exit 0
else
echo "Fail: expected '$expected', got '$actual'"
exit 1
fi