зеркало из https://github.com/github/ruby.git
[ruby/prism] Test version: 3.3.0
https://github.com/ruby/prism/commit/94ecb366c4
This commit is contained in:
Родитель
27d81b9282
Коммит
de9411c0b9
|
@ -174,6 +174,10 @@ module Prism
|
|||
|
||||
assert_location(CallNode, "foo bar baz")
|
||||
assert_location(CallNode, "foo bar('baz')")
|
||||
|
||||
assert_location(CallNode, "-> { it }", 5...7, version: "3.3.0") do |node|
|
||||
node.body.body.first
|
||||
end
|
||||
end
|
||||
|
||||
def test_CallAndWriteNode
|
||||
|
@ -900,8 +904,8 @@ module Prism
|
|||
|
||||
private
|
||||
|
||||
def assert_location(kind, source, expected = 0...source.length)
|
||||
result = Prism.parse(source)
|
||||
def assert_location(kind, source, expected = 0...source.length, **options)
|
||||
result = Prism.parse(source, **options)
|
||||
assert_equal [], result.comments
|
||||
assert_equal [], result.errors
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче