[ruby/prism] Test version: 3.3.0

https://github.com/ruby/prism/commit/94ecb366c4
This commit is contained in:
Takashi Kokubun 2024-01-17 09:24:11 -08:00 коммит произвёл git
Родитель 27d81b9282
Коммит de9411c0b9
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -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