Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

When canonicalizing query tests output, ignore empty lines: they usua…

…lly contain

only comments
  • Loading branch information...
commit 60f9a8f700d4cc9ca35d6ce0f1d82f781d3c7030 1 parent 911ec19
@adymo adymo authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  assert_same.rb
View
2  assert_same.rb
@@ -140,6 +140,8 @@ def canonicalize_for_assert_same(text)
result_canonicalized= result.map do |line|
line.gsub(/\s*(#.*)?$/, '')
end
+ # ignore blank lines (usually they are lines with comments only)
+ result_canonicalized.delete_if { |line| line.blank? }
[result, result_canonicalized]
end
Please sign in to comment.
Something went wrong with that request. Please try again.