ascii: add test

Closes Homebrew/homebrew#26443.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Mike Naberezny 2014-02-05 12:53:39 -08:00 committed by Adam Vandenberg
parent 825202efd8
commit b8ae067b5f

View file

@ -10,4 +10,10 @@ class Ascii < Formula
bin.install "ascii"
man1.install 'ascii.1'
end
test do
output = `#{bin}/ascii 0x0a`
assert output.include?("Official name: Line Feed")
assert_equal 0, $?.exitstatus
end
end