summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-09-28 10:48:24 -0400
committerKevin Newton <kddnewton@gmail.com>2023-09-29 09:51:23 -0400
commit396042a25c6c8f84cd08f9e5f10d46b834802c9f (patch)
tree8cc528137439f7d27d40a5a7b1addbdf0e3a9e4c /test/ruby
parent9b2b2082a7e48f5406b3ed44f400eb3010ae60e0 (diff)
Fix up static hash compilation
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_compile_prism.rb11
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 #
############################################################################