From d7103abe72bb45c7012febb87fa2db3fb9e05786 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Fri, 7 Feb 2014 10:30:57 -0800 Subject: gnu-smalltalk: add test Closes #26502. Signed-off-by: Mike McQuaid --- Library/Formula/gnu-smalltalk.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3