зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
0d88cd9394
Коммит
53da7250ed
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче