aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/aamath.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/aamath.rb b/Library/Formula/aamath.rb
index b3011d5c8..744bb5f4c 100644
--- a/Library/Formula/aamath.rb
+++ b/Library/Formula/aamath.rb
@@ -14,7 +14,11 @@ class Aamath < Formula
prefix.install "testcases"
end
- def test
- system "cat #{prefix}/testcases | #{bin}/aamath"
+ test do
+ IO.popen("#{bin}/aamath", "w+") do |pipe|
+ pipe.write((prefix/"testcases").read)
+ pipe.close_write
+ /#{Regexp.escape("f(x + h) = f(x) + h f'(x)")}/ === pipe.read
+ end
end
end