Can now read files from the filesystem.
This commit is contained in:
parent
d9acb277bf
commit
3470f27585
3 changed files with 34 additions and 7 deletions
13
unit-tests/slurp.sh
Executable file
13
unit-tests/slurp.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue