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 'name' => '<Custom Code>',
18 'operator' => 'CODE(...)',
19 '_file' => '(eval 47)',
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('1')->beq($_);
31 }, 'Test2::Compare::Custom' ),
33 'name' => '<Custom Code>',
34 'operator' => 'CODE(...)',
35 '_file' => '(eval 112)',
37 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
42 'Math::BigInt'->new('2')->beq($_);
47 }, 'Test2::Compare::Custom' ),
49 'operator' => 'CODE(...)',
50 'name' => '<Custom Code>',
52 BEGIN {${^WARNING_BITS} = "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x15\x00\x04\x40\x05\x04\x54"}
57 'Math::BigInt'->new('3')->beq($_);
59 '_file' => '(eval 113)',
63 }, 'Test2::Compare::Custom' )
68 my $actual = from_toml(q{ints = [1,2,3]
71 is($actual, $expected1, 'array-nospaces - from_toml') or do{
73 diag Dumper($expected1);
79 is(eval{ from_toml(to_toml($actual)) }, $actual, 'array-nospaces - to_toml') or do{
84 diag to_toml($actual);
86 diag 'REPARSED OUTPUT:';
87 diag Dumper(from_toml(to_toml($actual)));