diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-10-26 14:56:21 -0400 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-10-26 14:59:13 -0400 |
commit | 018f0a9c5fda185f91edf3da797b9e1b1df14706 (patch) | |
tree | 591c41b2e28cd638307247af7d13405b68275eb1 /test/prism/location_test.rb | |
parent | 922f48f08158332c8cf94ad37f9e307f80200bf9 (diff) | |
download | ruby-018f0a9c5fda185f91edf3da797b9e1b1df14706.tar.gz |
[ruby/prism] Rename to lefts/rights
https://github.com/ruby/prism/commit/e6deed05a5
Diffstat (limited to 'test/prism/location_test.rb')
-rw-r--r-- | test/prism/location_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/prism/location_test.rb b/test/prism/location_test.rb index 03a4fcc942..5501d9de4a 100644 --- a/test/prism/location_test.rb +++ b/test/prism/location_test.rb @@ -224,7 +224,7 @@ module Prism def test_ClassVariableTargetNode assert_location(ClassVariableTargetNode, "@@foo, @@bar = baz", 0...5) do |node| - node.requireds.first + node.lefts.first end end @@ -252,7 +252,7 @@ module Prism def test_ConstantPathTargetNode assert_location(ConstantPathTargetNode, "::Foo, ::Bar = baz", 0...5) do |node| - node.requireds.first + node.lefts.first end end @@ -281,7 +281,7 @@ module Prism def test_ConstantTargetNode assert_location(ConstantTargetNode, "Foo, Bar = baz", 0...3) do |node| - node.requireds.first + node.lefts.first end end @@ -379,7 +379,7 @@ module Prism def test_GlobalVariableTargetNode assert_location(GlobalVariableTargetNode, "$foo, $bar = baz", 0...4) do |node| - node.requireds.first + node.lefts.first end end @@ -457,7 +457,7 @@ module Prism def test_InstanceVariableTargetNode assert_location(InstanceVariableTargetNode, "@foo, @bar = baz", 0...4) do |node| - node.requireds.first + node.lefts.first end end @@ -548,7 +548,7 @@ module Prism def test_LocalVariableTargetNode assert_location(LocalVariableTargetNode, "foo, bar = baz", 0...3) do |node| - node.requireds.first + node.lefts.first end end @@ -578,7 +578,7 @@ 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, "foo, (bar, baz) = qux", 5...15) { |node| node.lefts.last } assert_location(MultiTargetNode, "def foo((bar)); end", 8...13) do |node| node.parameters.requireds.first end |