calc: add test
Closes Homebrew/homebrew#26445. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
1f38150c1c
commit
825202efd8
1 changed files with 6 additions and 0 deletions
|
@ -41,4 +41,10 @@ class Calc < Formula
|
||||||
system "make"
|
system "make"
|
||||||
system "make install"
|
system "make install"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test do
|
||||||
|
output = `#{bin}/calc 0xA + 1`.strip
|
||||||
|
assert_equal "11", output
|
||||||
|
assert_equal 0, $?.exitstatus
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue