1 # File automatically generated from BurntSushi/toml-test
7 binmode STDIN, ':encoding(UTF-8)';
8 binmode STDOUT, ':encoding(UTF-8)';
13 'last' => 'Preston-Werner'
17 '_file' => '(eval 399)',
19 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
24 'Math::BigInt'->new('2')->beq($_);
29 'operator' => 'CODE(...)',
30 'name' => '<Custom Code>'
31 }, 'Test2::Compare::Custom' ),
33 'name' => '<Custom Code>',
34 'operator' => 'CODE(...)',
36 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
41 'Math::BigInt'->new('1')->beq($_);
46 '_file' => '(eval 400)'
47 }, 'Test2::Compare::Custom' )
51 '_file' => '(eval 401)',
56 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
61 'Math::BigInt'->new('1')->beq($_);
63 'operator' => 'CODE(...)',
64 'name' => '<Custom Code>'
65 }, 'Test2::Compare::Custom' )
69 'name' => '<Custom Code>',
70 'operator' => 'CODE(...)',
75 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
80 'Math::BigInt'->new('1')->beq($_);
82 '_file' => '(eval 404)'
83 }, 'Test2::Compare::Custom' )
88 'operator' => 'CODE(...)',
89 'name' => '<Custom Code>',
94 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
99 'Math::BigInt'->new('1')->beq($_);
101 '_file' => '(eval 402)'
102 }, 'Test2::Compare::Custom' )
106 '_file' => '(eval 403)',
107 'operator' => 'CODE(...)',
108 'name' => '<Custom Code>',
113 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
117 require Math::BigInt;
118 'Math::BigInt'->new('2')->beq($_);
120 }, 'Test2::Compare::Custom' )
126 my $actual = from_toml(q{name = { first = "Tom", last = "Preston-Werner" }
127 point = { x = 1, y = 2 }
129 str-key = { "a" = 1 }
130 table-array = [{ "a" = 1 }, { "b" = 2 }]
133 is($actual, $expected1, 'inline-table - from_toml') or do{
135 diag Dumper($expected1);
138 diag Dumper($actual);
141 is(eval{ from_toml(to_toml($actual)) }, $actual, 'inline-table - to_toml') or do{
143 diag Dumper($actual);
146 diag to_toml($actual);
148 diag 'REPARSED OUTPUT:';
149 diag Dumper(from_toml(to_toml($actual)));