IronRuby.Tests.Tests.Scenario_RubyProcCallArgs2D C# (CSharp) Method

Scenario_RubyProcCallArgs2D() public method

Tests MRI inconsistency in Yield1 vs YieldNoSplat1 when invoked from Call1.
public Scenario_RubyProcCallArgs2D ( ) : void
return void
        public void Scenario_RubyProcCallArgs2D() {
            TestOutput(@"
f = proc {|x,| x}
p f.call(1)
p f.call([1])
p f.call([[1]])
p f.call([1,2])

f = lambda {|x,| x}
p f.call(1)
p f.call([1])
p f.call([[1]])
p f.call([1,2])
", @"
1
1
[1]
1
1
[1]
[[1]]
[1, 2]
");
        }
Tests