1 # File automatically generated from BurntSushi/toml-test
6 use DateTime::Format::RFC3339;
11 binmode STDIN, ':encoding(UTF-8)';
12 binmode STDOUT, ':encoding(UTF-8)';
17 'operator' => 'CODE(...)',
18 'name' => '<Custom Code>',
19 '_file' => '(eval 417)',
21 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
26 'Math::BigInt'->new('3')->beq($_);
31 }, 'Test2::Compare::Custom' ),
32 'with.dot' => bless( {
33 '_file' => '(eval 416)',
35 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
40 'Math::BigInt'->new('4')->beq($_);
42 'name' => '<Custom Code>',
43 'operator' => 'CODE(...)',
47 }, 'Test2::Compare::Custom' )
55 'name' => '<Custom Code>',
56 'operator' => 'CODE(...)',
57 '_file' => '(eval 419)',
59 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
64 'Math::BigInt'->new('5')->beq($_);
66 }, 'Test2::Compare::Custom' ),
67 'key.with.dots' => bless( {
72 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
77 'Math::BigInt'->new('6')->beq($_);
79 '_file' => '(eval 418)',
80 'operator' => 'CODE(...)',
81 'name' => '<Custom Code>'
82 }, 'Test2::Compare::Custom' )
86 'operator' => 'CODE(...)',
87 'name' => '<Custom Code>',
89 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
94 'Math::BigInt'->new('1')->beq($_);
96 '_file' => '(eval 414)',
100 }, 'Test2::Compare::Custom' ),
101 'with.dot' => bless( {
102 'name' => '<Custom Code>',
103 'operator' => 'CODE(...)',
105 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
109 require Math::BigInt;
110 'Math::BigInt'->new('2')->beq($_);
112 '_file' => '(eval 415)',
116 }, 'Test2::Compare::Custom' )
120 my $actual = from_toml(q{plain = 1
129 "key.with.dots" = 6});
131 is($actual, $expected1, 'keys-with-dots - from_toml') or do{
133 diag Dumper($expected1);
136 diag Dumper($actual);
139 is(eval{ from_toml(to_toml($actual)) }, $actual, 'keys-with-dots - to_toml') or do{
141 diag Dumper($actual);
144 diag to_toml($actual);
146 diag 'REPARSED OUTPUT:';
147 diag Dumper(from_toml(to_toml($actual)));