From 04e9a81b8e969dd4827219572880c05e5fbac2f8 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 3 Jul 2007 19:35:09 +0000 Subject: * compile.c (compile_array, iseq_compile_each): fix about array generation in void context. [ruby-dev:31102] * bootstraptest/test_literal.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_literal.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'bootstraptest/test_literal.rb') diff --git a/bootstraptest/test_literal.rb b/bootstraptest/test_literal.rb index fea5bcd07d..2ef47a5c2c 100644 --- a/bootstraptest/test_literal.rb +++ b/bootstraptest/test_literal.rb @@ -112,6 +112,7 @@ assert_equal 'Array', 'a = [obj = Object.new]; a.class' assert_equal '1', 'a = [obj = Object.new]; a.size' assert_equal 'true', 'a = [obj = Object.new]; a[0] == obj' assert_equal '5', 'a = [1,2,3]; a[1] = 5; a[1]' +assert_equal 'bar', '[*:foo];:bar' # hash assert_equal 'Hash', '{}.class' -- cgit v1.2.3