summaryrefslogtreecommitdiff
path: root/bootstraptest/test_literal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_literal.rb')
-rw-r--r--bootstraptest/test_literal.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstraptest/test_literal.rb b/bootstraptest/test_literal.rb
index 76963962b4..2efd415429 100644
--- a/bootstraptest/test_literal.rb
+++ b/bootstraptest/test_literal.rb
@@ -115,6 +115,8 @@ assert_equal '5', 'a = [1,2,3]; a[1] = 5; a[1]'
assert_equal 'bar', '[*:foo];:bar'
assert_equal '[1, 2]', 'def nil.to_splat; [2]; end; [1, *nil]'
assert_equal '[1, 2]', 'def nil.to_splat; [1, 2]; end; [*nil]'
+assert_equal '[0, 1, {2=>3}]', '[0, *[1], 2=>3]', "[ruby-dev:31592]"
+
# hash
assert_equal 'Hash', '{}.class'