aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike Naberezny2014-02-04 16:11:37 -0800
committerMike McQuaid2014-02-05 11:41:36 +0000
commitfc9d11b0b4c4c03ca7a497424ae7fbc6f6d85347 (patch)
treea5102a6670ced8c495a87d80ec396caded887c01 /Library/Formula
parent0fe97972d86ad66b014ef64820c7c2458d54b393 (diff)
downloadhomebrew-fc9d11b0b4c4c03ca7a497424ae7fbc6f6d85347.tar.bz2
cdecl: add test
Closes #26416. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cdecl.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/cdecl.rb b/Library/Formula/cdecl.rb
index 657433dc6..62abcfcab 100644
--- a/Library/Formula/cdecl.rb
+++ b/Library/Formula/cdecl.rb
@@ -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