Skip to content

Commit

Permalink
lhasa: test style fixed
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#44775.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
  • Loading branch information
bfontaine committed Oct 9, 2015
1 parent 30b5580 commit 5ae3b3e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Formula/lhasa.rb
Expand Up @@ -25,9 +25,14 @@ def install
end

test do
str = "MQAtbGgwLQQAAAAEAAAA9ZQTUyACg2JVBQAA" \
"hloGAAFmb28FAFCkgQcAURQA9QEAAGZvbwoA"
system "echo #{str} | /usr/bin/base64 -D | #{bin}/lha x -"
assert_equal "foo\n", `cat foo`
data = [
%w[
31002d6c68302d0400000004000000f59413532002836255050000865a060001666f6f0
50050a4810700511400f5010000666f6f0a00
].join
].pack("H*")

pipe_output("#{bin}/lha x -", data)
assert_equal "foo\n", (testpath/"foo").read
end
end

0 comments on commit 5ae3b3e

Please sign in to comment.