Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Made hex handling (eg object_ids) in mu_pp_for_diff more specific. …

…(maxim)

[git-p4: depot-paths = "//src/minitest/dev/": change = 8162]
  • Loading branch information...
commit b5a48b0d11214d468970b0558ce9d096f4ed16e0 1 parent 3dd26d4
Ryan Davis zenspider authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/minitest/unit.rb
4 lib/minitest/unit.rb
View
@@ -172,8 +172,8 @@ def mu_pp obj
# newlines and makes hex-values generic (like object_ids). This
# uses mu_pp to do the first pass and then cleans it up.
- def mu_pp_for_diff obj # TODO: possibly rename
- mu_pp(obj).gsub(/\\n/, "\n").gsub(/0x[a-f0-9]+/m, '0xXXXXXX')
+ def mu_pp_for_diff obj
+ mu_pp(obj).gsub(/\\n/, "\n").gsub(/:0x[a-f0-9]{4,12}/m, ':0xXXXXXX')
end
def _assertions= n # :nodoc:
Please sign in to comment.
Something went wrong with that request. Please try again.