cdecl: add test

Closes Homebrew/homebrew#26416.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike Naberezny 2014-02-04 16:11:37 -08:00 committed by Mike McQuaid
parent 81b58ff7fa
commit b70f91ff4d

View file

@ -21,4 +21,10 @@ class Cdecl < Formula
"MANDIR=#{man1}",
"install"
end
test do
output = `#{bin}/cdecl explain int *a`.strip
assert_equal "declare a as pointer to int", output
assert_equal 0, $?.exitstatus
end
end