diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-09-28 14:25:47 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2023-09-29 09:51:23 -0400 |
| commit | 2e25289aee55e023ce0481ecd00ff20b4d8952c0 (patch) | |
| tree | 055b9096fca32fe6285c9d9d53769ffac870bf43 /test/ruby | |
| parent | 38e3cafe62637b138700e04a8a6a1ee73fe5a5f2 (diff) | |
Handle static array nodes
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 6dc4f70c49..9c2f232396 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -307,6 +307,13 @@ module Prism # Structures # ############################################################################ + def test_ArrayNode + test_prism_eval("[]") + test_prism_eval("[1, 2, 3]") + test_prism_eval("%i[foo bar baz]") + test_prism_eval("%w[foo bar baz]") + end + def test_HashNode test_prism_eval("{}") test_prism_eval("{ a: :a }") |
