gnu-smalltalk: add test

Closes #26502.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike Naberezny authored and Mike McQuaid committed 2014-02-07 22:57:12 +00:00
1 parent c13c567bb4
commit d7103abe72
1 file changed
+9
+9
View File
@@ -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