diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-10-23 13:43:22 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-10-26 14:59:07 -0400 |
commit | 922f48f08158332c8cf94ad37f9e307f80200bf9 (patch) | |
tree | 0514d0282daba40b7748cd77c00b9aaa70cd20bd /test/prism/location_test.rb | |
parent | 533bd1d1fa1bc0a9de1f8818b3a3275e9d50e6cc (diff) | |
download | ruby-922f48f08158332c8cf94ad37f9e307f80200bf9.tar.gz |
[ruby/prism] Remove RequiredDestructuredParameterNode in favor of MultiTargetNode
https://github.com/ruby/prism/commit/6d1858192e
Diffstat (limited to 'test/prism/location_test.rb')
-rw-r--r-- | test/prism/location_test.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/test/prism/location_test.rb b/test/prism/location_test.rb index 3ca0ad6cfd..03a4fcc942 100644 --- a/test/prism/location_test.rb +++ b/test/prism/location_test.rb @@ -579,6 +579,9 @@ module Prism def test_MultiTargetNode assert_location(MultiTargetNode, "for foo, bar in baz do end", 4...12, &:index) assert_location(MultiTargetNode, "foo, (bar, baz) = qux", 5...15) { |node| node.requireds.last } + assert_location(MultiTargetNode, "def foo((bar)); end", 8...13) do |node| + node.parameters.requireds.first + end end def test_MultiWriteNode @@ -676,12 +679,6 @@ module Prism end end - def test_RequiredDestructuredParameterNode - assert_location(RequiredDestructuredParameterNode, "def foo((bar)); end", 8...13) do |node| - node.parameters.requireds.first - end - end - def test_RescueNode code = <<~RUBY begin |