calc: add test

Closes Homebrew/homebrew#26445.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Mike Naberezny 2014-02-05 13:11:28 -08:00 committed by Adam Vandenberg
parent 1f38150c1c
commit 825202efd8

View file

@ -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