diff options
| author | Mike Naberezny | 2014-02-05 12:53:39 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-05 23:02:59 -0800 |
| commit | 63451e4f419ef3ba1ef4a2a4459591575f53ed5b (patch) | |
| tree | b8fb2f79deeb4240fcec4be209c54b70cf882542 | |
| parent | b2ed25dfc8d6357ec8c3e8fdc020f368c1b4433d (diff) | |
| download | homebrew-63451e4f419ef3ba1ef4a2a4459591575f53ed5b.tar.bz2 | |
ascii: add test
Closes #26443.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/ascii.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/ascii.rb b/Library/Formula/ascii.rb index 00be79f70..e50e11ec9 100644 --- a/Library/Formula/ascii.rb +++ b/Library/Formula/ascii.rb @@ -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 |
