Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
cdecl: add test
Browse files Browse the repository at this point in the history
Closes #26416.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
mnaberez authored and MikeMcQuaid committed Feb 5, 2014
1 parent 0fe9797 commit fc9d11b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Library/Formula/cdecl.rb
Expand Up @@ -21,4 +21,10 @@ def install
"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

0 comments on commit fc9d11b

Please sign in to comment.