diff options
author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-01 09:36:15 -0300 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-01 14:40:45 +0000 |
commit | e80ca70b9bd1ccfa319790475dc9c0dd125f4f0d (patch) | |
tree | 16e023bade33686bce3ad9b36e21816c57636745 /test/prism/location_test.rb | |
parent | d0625099e0f691f44fb4c796d8d497d818bf7c8e (diff) | |
download | ruby-e80ca70b9bd1ccfa319790475dc9c0dd125f4f0d.tar.gz |
[ruby/prism] Flip incorrect names of OptionalKeywordParameterNode and RequiredKeywordParameterNode
https://github.com/ruby/prism/commit/c31f61e898
Diffstat (limited to 'test/prism/location_test.rb')
-rw-r--r-- | test/prism/location_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/prism/location_test.rb b/test/prism/location_test.rb index aa130abd5f..363e96fae8 100644 --- a/test/prism/location_test.rb +++ b/test/prism/location_test.rb @@ -600,7 +600,7 @@ module Prism end def test_OptionalKeywordParameterNode - assert_location(OptionalKeywordParameterNode, "def foo(bar:); end", 8...12) do |node| + assert_location(OptionalKeywordParameterNode, "def foo(bar: nil); end", 8...16) do |node| node.parameters.keywords.first end end @@ -670,7 +670,7 @@ module Prism end def test_RequiredKeywordParameterNode - assert_location(RequiredKeywordParameterNode, "def foo(bar: nil); end", 8...16) do |node| + assert_location(RequiredKeywordParameterNode, "def foo(bar:); end", 8...12) do |node| node.parameters.keywords.first end end |