mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-28 20:09:41 -05:00
gnu-smalltalk: add test
Closes #26502. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
1 parent
c13c567bb4
commit
d7103abe72
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user