diff options
| author | Mike Naberezny | 2014-02-07 10:30:57 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-07 22:57:12 +0000 |
| commit | d7103abe72bb45c7012febb87fa2db3fb9e05786 (patch) | |
| tree | 9b0d900390b193b95ea579cd74ab8f1cd244da5f | |
| parent | c13c567bb41229c8cdb68d4274c295c4585fdcad (diff) | |
| download | homebrew-d7103abe72bb45c7012febb87fa2db3fb9e05786.tar.bz2 | |
gnu-smalltalk: add test
Closes #26502.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -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 |
