base64: add test
Closes Homebrew/homebrew#26410. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
463cfe4735
commit
8bd8d1a629
1 changed files with 9 additions and 0 deletions
|
@ -11,4 +11,13 @@ class Base64 < Formula
|
|||
bin.install "base64"
|
||||
man1.install "base64.1"
|
||||
end
|
||||
|
||||
test do
|
||||
path = testpath/"a.txt"
|
||||
path.write "hello"
|
||||
|
||||
output = `#{bin}/base64 #{path}`.strip
|
||||
assert_equal "aGVsbG8=", output
|
||||
assert_equal 0, $?.exitstatus
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue