diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-02-15 16:27:03 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-03-13 22:38:05 +0900 |
commit | 2339be74e737b4c5f5330f845af2e7db0c7450e1 (patch) | |
tree | cbb396f4381fd4d5061c3d398af9cf01aa70a86a /test/drb/test_drb.rb | |
parent | c7e0ce67430b5e312eb626a2c2f4b6a810b3b68b (diff) |
lib/drb/drb.rb: Use ruby2_keywords for keyword separation
[Bug #16634]
(cherry picked from commit fb472ca7adbaceb35aae1b3a6b948720ffc9eb53)
Diffstat (limited to 'test/drb/test_drb.rb')
-rw-r--r-- | test/drb/test_drb.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb index b792349f28..47b2966ae2 100644 --- a/test/drb/test_drb.rb +++ b/test/drb/test_drb.rb @@ -349,4 +349,20 @@ class TestDRbTCP < Test::Unit::TestCase end end +class TestBug16634 < Test::Unit::TestCase + include DRbBase + + def setup + super + setup_service 'ut_drb.rb' + end + + def test_bug16634 + assert_equal(42, @there.keyword_test1(a: 42)) + assert_equal("default", @there.keyword_test2) + assert_equal(42, @there.keyword_test2(b: 42)) + assert_equal({:a=>42, :b=>42}, @there.keyword_test3(a: 42, b: 42)) + end +end + end |