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 7251603..5dfd69a 100644
--- a/test/-ext-/iseq_load/test_iseq_load.rb
+++ b/test/-ext-/iseq_load/test_iseq_load.rb
@@ -86,6 +86,15 @@ class TestIseqLoad < Test::Unit::TestCase
assert_iseq_roundtrip(src)
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"