Skip to content

Commit

Permalink
gnu-smalltalk: add test
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#26502.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
mnaberez authored and MikeMcQuaid committed Feb 7, 2014
1 parent b346730 commit 1d095cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Formula/gnu-smalltalk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,13 @@ def install
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

0 comments on commit 1d095cb

Please sign in to comment.