diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-30 01:33:14 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-30 01:33:14 +0900 |
| commit | 294ed9801193b0c83569b50ec7741f71d195a1ae (patch) | |
| tree | dcf935c94da3ac4a07db2611de61fcad0d7273e8 /test/t/syntax.rb | |
| parent | dbd36128ad652c743ecb9331f7c4b9ba4a9fb933 (diff) | |
| parent | 4229b41c6840d695e2fe2746866b719c26ca3a19 (diff) | |
| download | mruby-294ed9801193b0c83569b50ec7741f71d195a1ae.tar.gz mruby-294ed9801193b0c83569b50ec7741f71d195a1ae.zip | |
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'test/t/syntax.rb')
| -rw-r--r-- | test/t/syntax.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb index 332cfcca8..b975d0103 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -65,3 +65,12 @@ assert('Abbreviated variable assignment as returns') do end assert_equal Syntax4AbbrVarAsgnAsReturns::A.new.b, 1 end + +assert('Splat and mass assignment') do + *a = *[1,2,3] + b, *c = *[7,8,9] + + assert_equal [1,2,3], a + assert_equal 7, b + assert_equal [8,9], c +end |
