From 825202efd875f1fce5e56fa81ddfe70839284715 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Wed, 5 Feb 2014 13:11:28 -0800 Subject: [PATCH] calc: add test Closes Homebrew/homebrew#26445. Signed-off-by: Adam Vandenberg --- Formula/calc.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/calc.rb b/Formula/calc.rb index a18b841941..438116be69 100644 --- a/Formula/calc.rb +++ b/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