diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-03 18:50:28 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-03 18:50:28 +0000 |
| commit | 7cc177e519fb4544832b3323555dde511b062bfc (patch) | |
| tree | a9134cc3c203206eeefdebe5d2a22c28e8086778 /bootstraptest | |
| parent | 066a8e6205a56e44f04608914fe0f2a6d2000932 (diff) | |
| download | ruby-7cc177e519fb4544832b3323555dde511b062bfc.tar.gz ruby-7cc177e519fb4544832b3323555dde511b062bfc.tar.xz ruby-7cc177e519fb4544832b3323555dde511b062bfc.zip | |
* compile.c (compile_massign): fix massign compilation
(example: a, *v, (*x) = ...). [ruby-dev:31107]
* bootstraptest/test_massign.rb: add tests for above.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
| -rw-r--r-- | bootstraptest/test_massign.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bootstraptest/test_massign.rb b/bootstraptest/test_massign.rb index 61272a394..d4fa5931d 100644 --- a/bootstraptest/test_massign.rb +++ b/bootstraptest/test_massign.rb @@ -1,3 +1,6 @@ +assert_equal '[[1], 2, 3]', '*v1, (a, b) = [1,[2, 3]]; [v1, a, b]' +assert_equal '[[1], 2, 3]', '*v1,(*), (a, b) = [1,:x,[2, 3]]; [v1, a, b]' + =begin # generated by this script: |
