diff options
author | Kevin Newton <kddnewton@gmail.com> | 2023-11-20 21:38:03 -0500 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-11-21 02:38:07 +0000 |
commit | 9fa524dd41be60654e8515f9e406f6f47f0ac7fa (patch) | |
tree | 5cf2d3b62ba1f0ad68f98d85e3d76077164a6fb3 /test/prism/location_test.rb | |
parent | 73d519ec461bee7c06e37abcb808443a05ec5a21 (diff) | |
download | ruby-9fa524dd41be60654e8515f9e406f6f47f0ac7fa.tar.gz |
[ruby/prism] Split up CaseNode and CaseMatchNode
(https://github.com/ruby/prism/pull/1801)
https://github.com/ruby/prism/commit/4c1391ea56
Diffstat (limited to 'test/prism/location_test.rb')
-rw-r--r-- | test/prism/location_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/prism/location_test.rb b/test/prism/location_test.rb index 363e96fae8..02a577a73c 100644 --- a/test/prism/location_test.rb +++ b/test/prism/location_test.rb @@ -201,6 +201,13 @@ module Prism assert_location(CaseNode, "case foo; when bar; when baz; else; end") end + def test_CaseMatchNode + assert_location(CaseMatchNode, "case foo; in bar; end") + assert_location(CaseMatchNode, "case foo; in bar; else; end") + assert_location(CaseMatchNode, "case foo; in bar; in baz; end") + assert_location(CaseMatchNode, "case foo; in bar; in baz; else; end") + end + def test_ClassNode assert_location(ClassNode, "class Foo end") assert_location(ClassNode, "class Foo < Bar; end") |