summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-16 11:18:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-16 11:18:06 +0000
commit53da7250ed09b2c154591870804ab4c98b64b053 (patch)
treec8281065bbe58a018836d7dad28ebf0c93c4d8cb
parent0d88cd9394ecbcef0c733f7973504d6ff49db228 (diff)
* test/ruby/envutil.rb (assert_pattern_list): Show number of matched
patterns and characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/envutil.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8125fd9bfb..c02ced91a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct 16 20:01:26 2014 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (assert_pattern_list): Show number of matched
+ patterns and characters.
+
Thu Oct 16 16:26:09 2014 Eric Wong <e@80x24.org>
* cont.c (fiber_store): fix WIN32 fibers
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index 4d76a504af..f5fbb7c10b 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -485,7 +485,7 @@ eom
def assert_pattern_list(pattern_list, actual, message=nil)
rest = actual
anchored = true
- pattern_list.each {|pattern|
+ pattern_list.each_with_index {|pattern, i|
if pattern == :*
anchored = false
else
@@ -506,6 +506,7 @@ eom
else
actual_mesg = "to match #{mu_pp rest}"
end
+ actual_mesg << "\nafter #{i} patterns with #{actual.length - rest.length} characters"
expect_msg + actual_mesg
}
assert false, msg