diff options
| -rw-r--r-- | Library/Formula/gnu-smalltalk.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Formula/gnu-smalltalk.rb b/Library/Formula/gnu-smalltalk.rb index 26354aff2..55aa4edd2 100644 --- a/Library/Formula/gnu-smalltalk.rb +++ b/Library/Formula/gnu-smalltalk.rb @@ -60,4 +60,13 @@ class GnuSmalltalk < Formula system 'make', '-j1', 'check' if build.include? 'tests' system "make install" end + + test do + path = testpath/"test.gst" + path.write "0 to: 9 do: [ :n | n display ]\n" + + output = `#{bin}/gst #{path}`.strip + assert_equal "0123456789", output + assert_equal 0, $?.exitstatus + end end |
