diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-10-01 12:34:55 +0200 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-10-02 09:18:56 -0400 |
commit | 87dad067e03f98df7a64d4ce555e1213847e8dbb (patch) | |
tree | d8dc05ee85473d2f797ece4651ef5efc932058bd /test/prism/pattern_test.rb | |
parent | b6390a21eb7f316341bb7bf669a15dc321aa5239 (diff) | |
download | ruby-87dad067e03f98df7a64d4ce555e1213847e8dbb.tar.gz |
Sync with prism CallNode#name changes
* https://github.com/ruby/prism/pull/1533
Diffstat (limited to 'test/prism/pattern_test.rb')
-rw-r--r-- | test/prism/pattern_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/prism/pattern_test.rb b/test/prism/pattern_test.rb index af1efa7560..e0aa079cb9 100644 --- a/test/prism/pattern_test.rb +++ b/test/prism/pattern_test.rb @@ -43,7 +43,7 @@ module Prism end def test_array_pattern - results = scan("1 + 2", "CallNode[name: \"+\", receiver: IntegerNode, arguments: [IntegerNode]]") + results = scan("1 + 2", "CallNode[name: :+, receiver: IntegerNode, arguments: [IntegerNode]]") assert_equal 1, results.length end @@ -75,7 +75,7 @@ module Prism end def test_hash_pattern_no_constant - results = scan("Foo + Bar + Baz", "{ name: \"+\" }") + results = scan("Foo + Bar + Baz", "{ name: :+ }") assert_equal 2, results.length end |