1 # File automatically generated from BurntSushi/toml-test
7 binmode STDIN, ':encoding(UTF-8)';
8 binmode STDOUT, ':encoding(UTF-8)';
12 'with.dot' => bless( {
13 '_file' => '(eval 415)',
14 'name' => '<Custom Code>',
15 'operator' => 'CODE(...)',
17 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
22 'Math::BigInt'->new('4')->beq($_);
27 }, 'Test2::Compare::Custom' ),
29 'operator' => 'CODE(...)',
30 'name' => '<Custom Code>',
32 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
37 'Math::BigInt'->new('3')->beq($_);
42 '_file' => '(eval 414)'
43 }, 'Test2::Compare::Custom' )
48 '_file' => '(eval 416)',
50 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
55 'Math::BigInt'->new('5')->beq($_);
60 'operator' => 'CODE(...)',
61 'name' => '<Custom Code>'
62 }, 'Test2::Compare::Custom' ),
63 'key.with.dots' => bless( {
64 '_file' => '(eval 417)',
65 'operator' => 'CODE(...)',
66 'name' => '<Custom Code>',
68 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
73 'Math::BigInt'->new('6')->beq($_);
78 }, 'Test2::Compare::Custom' )
82 '_file' => '(eval 418)',
83 'name' => '<Custom Code>',
84 'operator' => 'CODE(...)',
86 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
91 'Math::BigInt'->new('1')->beq($_);
96 }, 'Test2::Compare::Custom' ),
97 'with.dot' => bless( {
102 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
106 require Math::BigInt;
107 'Math::BigInt'->new('2')->beq($_);
109 'operator' => 'CODE(...)',
110 'name' => '<Custom Code>',
111 '_file' => '(eval 419)'
112 }, 'Test2::Compare::Custom' )
116 my $actual = from_toml(q{plain = 1
125 "key.with.dots" = 6});
127 is($actual, $expected1, 'keys-with-dots - from_toml') or do{
129 diag Dumper($expected1);
132 diag Dumper($actual);
135 is(eval{ from_toml(to_toml($actual)) }, $actual, 'keys-with-dots - to_toml') or do{
137 diag Dumper($actual);
140 diag to_toml($actual);
142 diag 'REPARSED OUTPUT:';
143 diag Dumper(from_toml(to_toml($actual)));