aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/calc.rb
diff options
context:
space:
mode:
authorMike Naberezny2014-02-05 13:11:28 -0800
committerAdam Vandenberg2014-02-05 23:02:51 -0800
commitb2ed25dfc8d6357ec8c3e8fdc020f368c1b4433d (patch)
tree34d6effb461ffbefe4ee0228d9cff96cd72f6797 /Library/Formula/calc.rb
parentf3226182055226997463ea32971c63bf56d78ac0 (diff)
downloadhomebrew-b2ed25dfc8d6357ec8c3e8fdc020f368c1b4433d.tar.bz2
calc: add test
Closes #26445. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/calc.rb')
-rw-r--r--Library/Formula/calc.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/calc.rb b/Library/Formula/calc.rb
index a18b84194..438116be6 100644
--- a/Library/Formula/calc.rb
+++ b/Library/Formula/calc.rb
@@ -41,4 +41,10 @@ class Calc < Formula
system "make"
system "make install"
end
+
+ test do
+ output = `#{bin}/calc 0xA + 1`.strip
+ assert_equal "11", output
+ assert_equal 0, $?.exitstatus
+ end
end