Skip to content

Commit

Permalink
Showing 3 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/truffle/integration/irb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -e

ruby -X+T -S irb < test/truffle/integration/irb/input.txt > temp.txt

if ! cmp --silent temp.txt test/truffle/integration/irb/output.txt
then
echo IRB output was not as expected
rm -f temp.txt
exit 1
else
rm -f temp.txt
fi
3 changes: 3 additions & 0 deletions test/truffle/integration/irb/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
14
14 + 2
exit
6 changes: 6 additions & 0 deletions test/truffle/integration/irb/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Switch to inspect mode.
14
14
14 + 2
16
exit

0 comments on commit 373c847

Please sign in to comment.