aboutsummaryrefslogtreecommitdiffstats
path: root/test/prism/errors_test.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2023-11-20 17:43:26 +0100
committergit <svn-admin@ruby-lang.org>2023-11-22 12:15:20 +0000
commit018e6abf8509c7de2a8efb49741d594b15f49fbf (patch)
tree73063cfd93412f02dbeb4981eabb73c84160be83 /test/prism/errors_test.rb
parentea60bf912caa3ea193b7673b59b0113c1e708609 (diff)
downloadruby-018e6abf8509c7de2a8efb49741d594b15f49fbf.tar.gz
[ruby/prism] Move CallNode#name field between receiver and arguments
* The same order as in source code. * CallOrWriteNode, CallOperatorWriteNode, CallAndWriteNode already have the correct order so it was also inconsistent with them. https://github.com/ruby/prism/commit/4434e4bc22
Diffstat (limited to 'test/prism/errors_test.rb')
-rw-r--r--test/prism/errors_test.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/prism/errors_test.rb b/test/prism/errors_test.rb
index 99b799d9c5..6297548668 100644
--- a/test/prism/errors_test.rb
+++ b/test/prism/errors_test.rb
@@ -83,13 +83,13 @@ module Prism
CallNode(
expression("1"),
nil,
+ :+,
Location(),
nil,
ArgumentsNode([MissingNode()], 0),
nil,
nil,
- 0,
- :+
+ 0
)
]),
Location(),
@@ -341,6 +341,7 @@ module Prism
expected = CallNode(
nil,
nil,
+ :a,
Location(),
Location(),
ArgumentsNode([
@@ -349,8 +350,7 @@ module Prism
], 1),
Location(),
nil,
- 0,
- :a
+ 0
)
assert_errors expected, "a(**kwargs, *args)", [
@@ -362,13 +362,13 @@ module Prism
expected = CallNode(
nil,
nil,
+ :a,
Location(),
Location(),
ArgumentsNode([expression("foo")], 0),
Location(),
BlockArgumentNode(expression("block"), Location()),
- 0,
- :a
+ 0
)
assert_errors expected, "a(&block, foo)", [
@@ -388,6 +388,7 @@ module Prism
expected = CallNode(
nil,
nil,
+ :a,
Location(),
Location(),
ArgumentsNode([
@@ -402,8 +403,7 @@ module Prism
], 0),
Location(),
nil,
- 0,
- :a
+ 0
)
assert_errors expected, "a(foo: bar, *args)", [
@@ -442,6 +442,7 @@ module Prism
[CallNode(
nil,
nil,
+ :bar,
Location(),
nil,
nil,
@@ -453,8 +454,7 @@ module Prism
Location(),
Location()
),
- 0,
- :bar
+ 0
)]
),
[],
@@ -1004,6 +1004,7 @@ module Prism
expected = CallNode(
nil,
nil,
+ :a,
Location(),
nil,
nil,
@@ -1015,8 +1016,7 @@ module Prism
Location(),
Location()
),
- 0,
- :a
+ 0
)
assert_errors expected, "a {|...|}", [