1 # File automatically generated from BurntSushi/toml-test
7 binmode STDIN, ':encoding(UTF-8)';
8 binmode STDOUT, ':encoding(UTF-8)';
11 'lit_nl_end' => 'value\\n',
12 'lit_nl_uni' => 'val\\ue',
13 'lit_nl_mid' => 'val\\nue',
21 my $actual = from_toml(q{nl_mid = "val\\nue"
22 nl_end = """value\\n"""
24 lit_nl_end = '''value\\n'''
25 lit_nl_mid = 'val\\nue'
26 lit_nl_uni = 'val\\ue'
29 is($actual, $expected1, 'string-nl - from_toml') or do{
31 diag Dumper($expected1);
37 is(eval{ from_toml(to_toml($actual)) }, $actual, 'string-nl - to_toml') or do{
42 diag to_toml($actual);
44 diag 'REPARSED OUTPUT:';
45 diag Dumper(from_toml(to_toml($actual)));