Skip to content

Commit

Permalink
abnfgen: add test.
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#34912.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
bfontaine authored and MikeMcQuaid committed Dec 12, 2014
1 parent 94755c6 commit 6049c8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/abnfgen.rb
Expand Up @@ -11,4 +11,9 @@ def install
"--mandir=#{man}"
system "make install"
end

test do
(testpath/"grammar").write %(ring = 1*12("ding" SP) "dong" CRLF)
system "#{bin}/abnfgen", (testpath/"grammar")
end
end

0 comments on commit 6049c8b

Please sign in to comment.