Skip to content

Commit

Permalink
gawk: a test
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#27127.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
tedpennings authored and adamv committed Mar 2, 2014
1 parent 27a0ce1 commit e9ff47b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Formula/gawk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ def install
system "make check"
system "make install"
end

test do
output = `echo "Macrobrew" | gawk '{ gsub(/Macro/, "Home"); print }' -`
assert_equal 'Homebrew', output.strip
assert_equal 0, $?.exitstatus
end
end

0 comments on commit e9ff47b

Please sign in to comment.