From 50cc9341450cfbdf9a40df3d38600d8d2854a0a3 Mon Sep 17 00:00:00 2001 From: zverok Date: Wed, 20 Nov 2019 02:33:20 +0200 Subject: Update representation (discussed on ruby tracker) --- test/ruby/test_method.rb | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index efd5fae328..be5afab05f 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -636,23 +636,23 @@ class TestMethod < Test::Unit::TestCase assert_include(method(:m0).inspect, "()") assert_include(method(:m1).inspect, "(a)") assert_include(method(:m2).inspect, "(a, b)") - assert_include(method(:mo1).inspect, "(a=, &b)") - assert_include(method(:mo2).inspect, "(a, b=)") + assert_include(method(:mo1).inspect, "(a=..., &b)") + assert_include(method(:mo2).inspect, "(a, b=...)") assert_include(method(:mo3).inspect, "(*a)") assert_include(method(:mo4).inspect, "(a, *b, &c)") assert_include(method(:mo5).inspect, "(a, *b, c)") assert_include(method(:mo6).inspect, "(a, *b, c, &d)") - assert_include(method(:mo7).inspect, "(a, b=, *c, d, &e)") - assert_include(method(:mo8).inspect, "(a, b=, *, d, &e)") - assert_include(method(:ma1).inspect, "(arg1, &b)") + assert_include(method(:mo7).inspect, "(a, b=..., *c, d, &e)") + assert_include(method(:mo8).inspect, "(a, b=..., *, d, &e)") + assert_include(method(:ma1).inspect, "(_, &b)") assert_include(method(:mk1).inspect, "(**)") assert_include(method(:mk2).inspect, "(**o)") assert_include(method(:mk3).inspect, "(a, **o)") - assert_include(method(:mk4).inspect, "(a=, **o)") - assert_include(method(:mk5).inspect, "(a, b=, **o)") - assert_include(method(:mk6).inspect, "(a, b=, c, **o)") - assert_include(method(:mk7).inspect, "(a, b=, *c, d, **o)") - assert_include(method(:mk8).inspect, "(a, b=, *c, d, e:, f: , **o)") + assert_include(method(:mk4).inspect, "(a=..., **o)") + assert_include(method(:mk5).inspect, "(a, b=..., **o)") + assert_include(method(:mk6).inspect, "(a, b=..., c, **o)") + assert_include(method(:mk7).inspect, "(a, b=..., *c, d, **o)") + assert_include(method(:mk8).inspect, "(a, b=..., *c, d, e:, f: ..., **o)") assert_include(method(:mnk).inspect, "(**nil)") end @@ -660,23 +660,23 @@ class TestMethod < Test::Unit::TestCase assert_include(self.class.instance_method(:m0).inspect, "()") assert_include(self.class.instance_method(:m1).inspect, "(a)") assert_include(self.class.instance_method(:m2).inspect, "(a, b)") - assert_include(self.class.instance_method(:mo1).inspect, "(a=, &b)") - assert_include(self.class.instance_method(:mo2).inspect, "(a, b=)") + assert_include(self.class.instance_method(:mo1).inspect, "(a=..., &b)") + assert_include(self.class.instance_method(:mo2).inspect, "(a, b=...)") assert_include(self.class.instance_method(:mo3).inspect, "(*a)") assert_include(self.class.instance_method(:mo4).inspect, "(a, *b, &c)") assert_include(self.class.instance_method(:mo5).inspect, "(a, *b, c)") assert_include(self.class.instance_method(:mo6).inspect, "(a, *b, c, &d)") - assert_include(self.class.instance_method(:mo7).inspect, "(a, b=, *c, d, &e)") - assert_include(self.class.instance_method(:mo8).inspect, "(a, b=, *, d, &e)") - assert_include(self.class.instance_method(:ma1).inspect, "(arg1, &b)") + assert_include(self.class.instance_method(:mo7).inspect, "(a, b=..., *c, d, &e)") + assert_include(self.class.instance_method(:mo8).inspect, "(a, b=..., *, d, &e)") + assert_include(self.class.instance_method(:ma1).inspect, "(_, &b)") assert_include(self.class.instance_method(:mk1).inspect, "(**)") assert_include(self.class.instance_method(:mk2).inspect, "(**o)") assert_include(self.class.instance_method(:mk3).inspect, "(a, **o)") - assert_include(self.class.instance_method(:mk4).inspect, "(a=, **o)") - assert_include(self.class.instance_method(:mk5).inspect, "(a, b=, **o)") - assert_include(self.class.instance_method(:mk6).inspect, "(a, b=, c, **o)") - assert_include(self.class.instance_method(:mk7).inspect, "(a, b=, *c, d, **o)") - assert_include(self.class.instance_method(:mk8).inspect, "(a, b=, *c, d, e:, f: , **o)") + assert_include(self.class.instance_method(:mk4).inspect, "(a=..., **o)") + assert_include(self.class.instance_method(:mk5).inspect, "(a, b=..., **o)") + assert_include(self.class.instance_method(:mk6).inspect, "(a, b=..., c, **o)") + assert_include(self.class.instance_method(:mk7).inspect, "(a, b=..., *c, d, **o)") + assert_include(self.class.instance_method(:mk8).inspect, "(a, b=..., *c, d, e:, f: ..., **o)") assert_include(self.class.instance_method(:mnk).inspect, "(**nil)") end -- cgit v1.2.3