aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/javarepl.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/javarepl.rb b/Library/Formula/javarepl.rb
index 0126fedb7..4e691b9d2 100644
--- a/Library/Formula/javarepl.rb
+++ b/Library/Formula/javarepl.rb
@@ -11,6 +11,10 @@ class Javarepl < Formula
end
test do
- system "echo :quit | javarepl"
+ IO.popen(bin/"javarepl", "w+") do |pipe|
+ pipe.write "System.out.println(64*1024)\n:quit\n"
+ pipe.close_write
+ assert pipe.read.include?("65536")
+ end
end
end