From 95d4157338961a19a9980bdd23daa48c54f982b2 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 8 Jun 2013 21:26:16 -0500 Subject: aamath: use test assertion --- Library/Formula/aamath.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/aamath.rb b/Library/Formula/aamath.rb index 744bb5f4c..34e551755 100644 --- a/Library/Formula/aamath.rb +++ b/Library/Formula/aamath.rb @@ -18,7 +18,7 @@ class Aamath < Formula 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 + assert_match /#{Regexp.escape("f(x + h) = f(x) + h f'(x)")}/, pipe.read end end end -- cgit v1.2.3