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

AllowedSingletons2() public method

public AllowedSingletons2 ( ) : void
return void
        public void AllowedSingletons2() {
            TestOutput(@"
ok = ['x', true, false, nil, //, 1 << 70, 1.0]
error = [1, :foo]

ok.each do |x| 
  class << x; end
end

error.each { |x| 
  begin
    class << x; end
  rescue
  else
    raise x.to_s
  end
}

puts 'ok'
",
@"ok"
);
        }
Tests