summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2023-04-05 17:12:43 -0400
committerVictor Shepelev <zverok.offline@gmail.com>2023-04-06 09:24:38 +0300
commit061f5f4374a20f1ea1234a1bc204862c5fda1fed (patch)
treefe1941167f5c386ae617af634c3c48fde1d34268 /test
parent69460791ccdacef30eebb72c7a976f986292f48d (diff)
downloadruby-061f5f4374a20f1ea1234a1bc204862c5fda1fed.tar.gz
Add missing test for Data.initialize
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_data.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_data.rb b/test/ruby/test_data.rb
index 9380076e1b..b911776bde 100644
--- a/test/ruby/test_data.rb
+++ b/test/ruby/test_data.rb
@@ -97,6 +97,7 @@ class TestData < Test::Unit::TestCase
# Missing arguments can be fixed in initialize
assert_equal([[], {foo: 1}], klass.new(foo: 1).passed)
+ assert_equal([[], {foo: 42}], klass.new(42).passed)
# Extra keyword arguments can be dropped in initialize
assert_equal([[], {foo: 1, bar: 2, baz: 3}], klass.new(foo: 1, bar: 2, baz: 3).passed)