зеркало из https://github.com/github/ruby.git
[DOC] Update comment of assert_pattern_list
`pattern_list` may contain string since d903e76726
.
This commit is contained in:
Родитель
aa5d195712
Коммит
27916db08c
|
@ -541,11 +541,11 @@ eom
|
|||
refute_respond_to(obj, meth, msg)
|
||||
end
|
||||
|
||||
# pattern_list is an array which contains regexp and :*.
|
||||
# pattern_list is an array which contains regexp, string and :*.
|
||||
# :* means any sequence.
|
||||
#
|
||||
# pattern_list is anchored.
|
||||
# Use [:*, regexp, :*] for non-anchored match.
|
||||
# Use [:*, regexp/string, :*] for non-anchored match.
|
||||
def assert_pattern_list(pattern_list, actual, message=nil)
|
||||
rest = actual
|
||||
anchored = true
|
||||
|
|
Загрузка…
Ссылка в новой задаче