summaryrefslogtreecommitdiff
path: root/test/-ext-/iseq_load/test_iseq_load.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/iseq_load/test_iseq_load.rb')
-rw-r--r--test/-ext-/iseq_load/test_iseq_load.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/-ext-/iseq_load/test_iseq_load.rb b/test/-ext-/iseq_load/test_iseq_load.rb
index 5bbd49efba..e6cb0ff5c4 100644
--- a/test/-ext-/iseq_load/test_iseq_load.rb
+++ b/test/-ext-/iseq_load/test_iseq_load.rb
@@ -74,6 +74,15 @@ class TestIseqLoad < Test::Unit::TestCase
end;
end
+ def test_kwarg
+ assert_iseq_roundtrip <<-'end;'
+ def foo(kwarg: :foo)
+ kwarg
+ end
+ foo(kwarg: :bar)
+ end;
+ end
+
# FIXME: still failing
def test_require_integration
skip "iseq loader require integration tests still failing"