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)';
19 'name' => 'Jungleland'
22 'name' => 'Meeting Across the River'
25 'name' => 'Born to Run'
28 'name' => 'Born in the USA',
31 'name' => 'Glory Days'
34 'name' => 'Dancing in the Dark'
42 my $actual = from_toml(q{[[albums]]
49 name = "Meeting Across the River"
52 name = "Born in the USA"
58 name = "Dancing in the Dark"
61 is($actual, $expected1, 'table-array-nest - from_toml') or do{
63 diag Dumper($expected1);
69 is(eval{ from_toml(to_toml($actual)) }, $actual, 'table-array-nest - to_toml') or do{
74 diag to_toml($actual);
76 diag 'REPARSED OUTPUT:';
77 diag Dumper(from_toml(to_toml($actual)));