diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-07-31 17:27:59 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-07-31 17:27:59 +0900 |
| commit | 889f0f5f36212606056af4fbb7865f900c2b8af1 (patch) | |
| tree | 68cbb5f732a4fd151062396ce4b155b4662dd815 /test | |
| parent | 4ce9058f64ea9004de6adc7fff491cbdbc01bd43 (diff) | |
| download | mruby-889f0f5f36212606056af4fbb7865f900c2b8af1.tar.gz mruby-889f0f5f36212606056af4fbb7865f900c2b8af1.zip | |
Add test case corresponding to 53e2723.
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/syntax.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb index 6392509ec..c5405aa9c 100644 --- a/test/t/syntax.rb +++ b/test/t/syntax.rb @@ -511,6 +511,7 @@ assert 'keyword arguments' do def m(a=1, **k) [a, k] end assert_equal [1, {}], m + assert_equal [1, {a: 1}], m(a: 1) assert_equal [2, {a: 1, b: 2}], m(2, a: 1, b: 2) assert_equal [{a: 1}, {b: 2}], m({a: 1}, {b: 2}) |
