diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-09-28 10:48:24 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2023-09-29 09:51:23 -0400 |
| commit | 396042a25c6c8f84cd08f9e5f10d46b834802c9f (patch) | |
| tree | 8cc528137439f7d27d40a5a7b1addbdf0e3a9e4c /test/ruby | |
| parent | 9b2b2082a7e48f5406b3ed44f400eb3010ae60e0 (diff) | |
Fix up static hash compilation
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index f65025b9df..11d59a4373 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -304,6 +304,17 @@ module Prism end ############################################################################ + # Structures # + ############################################################################ + + def test_HashNode + test_prism_eval("{}") + test_prism_eval("{ a: :a }") + test_prism_eval("{ a: :a, b: :b }") + test_prism_eval("a = 1; { a: a }") + end + + ############################################################################ # Jumps # ############################################################################ |
