Skip to content

Commit

Permalink
Merge pull request #203740 from Homebrew/rfcstrip-test
Browse files Browse the repository at this point in the history
rfcstrip: update test to use refute_match
  • Loading branch information
BrewTestBot authored Jan 9, 2025
2 parents f7aea65 + 8d8bb39 commit 1a2187d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Formula/r/rfcstrip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ def install
end

test do
resource("rfc1149").stage do
stripped = shell_output("#{bin}/rfcstrip rfc1149.txt")
assert !stripped.match(/\[Page \d+\]/) # RFC page numbering
assert stripped.exclude?("\f") # form feed a.k.a. Control-L
end
resource("rfc1149").stage testpath
stripped = shell_output("#{bin}/rfcstrip rfc1149.txt")
refute_match(/\[Page \d+\]/, stripped) # RFC page numbering
refute_match "\f", stripped # form feed a.k.a. Control-L
end
end

0 comments on commit 1a2187d

Please sign in to comment.