From b2ed25dfc8d6357ec8c3e8fdc020f368c1b4433d Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Wed, 5 Feb 2014 13:11:28 -0800 Subject: calc: add test Closes #26445. Signed-off-by: Adam Vandenberg --- Library/Formula/calc.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3