diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-03 19:35:09 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-03 19:35:09 +0000 |
commit | 04e9a81b8e969dd4827219572880c05e5fbac2f8 (patch) | |
tree | 04b26fb1f94a836e46a16d0be8a0ee3c5910084b /bootstraptest/test_literal.rb | |
parent | 43bbe2841daf838111aa3f2687c23506191e76e7 (diff) | |
download | ruby-04e9a81b8e969dd4827219572880c05e5fbac2f8.tar.gz |
* 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
Diffstat (limited to 'bootstraptest/test_literal.rb')
-rw-r--r-- | bootstraptest/test_literal.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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' |