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)';
15 '~!@$^&*()_+-`1234567890[]|/?><.,;:\'' => bless( {
16 'operator' => 'CODE(...)',
17 'name' => '<Custom Code>',
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('1')->beq($_);
26 '_file' => '(eval 413)',
30 }, 'Test2::Compare::Custom' )
34 my $actual = from_toml(q{"~!@$^&*()_+-`1234567890[]|/?><.,;:'" = 1
37 is($actual, $expected1, 'key-special-chars - from_toml') or do{
39 diag Dumper($expected1);
45 is(eval{ from_toml(to_toml($actual)) }, $actual, 'key-special-chars - to_toml') or do{
50 diag to_toml($actual);
52 diag 'REPARSED OUTPUT:';
53 diag Dumper(from_toml(to_toml($actual)));