# Yaml module tester. ######################### use strict; use warnings; use lib q(t); use Testhelper; my @tests; push @tests, { 'format' => 'yaml', 'input' => "fmt/yaml/basic.yaml" }, { 'doc' => 'basic -o keys=Name', 'format' => 'yaml', 'input' => "fmt/yaml/basic.yaml", 'options' => "-o keys=Name", 'potfile' => 'fmt/yaml/keysoption1.pot', 'pofile' => 'fmt/yaml/keysoption1.po', 'trans' => 'fmt/yaml/keysoption1.trans', }, { 'doc' => "basic -o keys='Name File'", 'format' => 'yaml', 'input' => "fmt/yaml/basic.yaml", 'options' => "-o 'keys=Name File'", 'potfile' => 'fmt/yaml/keysoption2.pot', 'pofile' => 'fmt/yaml/keysoption2.po', 'trans' => 'fmt/yaml/keysoption2.trans', }, { 'doc' => "-o skip_array", 'format' => 'yaml', 'options' => "-o keys=title -o skip_array", 'input' => "fmt/yaml/skiparray.yaml", }, { 'doc' => "basic -o keys='Name' -o paths='Name,Level1 Dir,invoice,bill-to address city' -o skip_array", 'format' => 'yaml', 'input' => "fmt/yaml/basic.yaml", 'options' => "-o keys='Name' -o paths='Name,Level1 Dir,invoice,bill-to address city' -o skip_array", 'potfile' => 'fmt/yaml/keysandpaths1.pot', 'pofile' => 'fmt/yaml/keysandpaths1.po', 'trans' => 'fmt/yaml/keysandpaths1.trans', }, { 'doc' => "basic -o paths='Name,level1 Dir ' -o skip_array", 'format' => 'yaml', 'input' => "fmt/yaml/basic.yaml", 'options' => "-o paths='Name,Level1 Dir' -o skip_array", 'potfile' => 'fmt/yaml/pathsoption1.pot', 'pofile' => 'fmt/yaml/pathsoption1.po', 'trans' => 'fmt/yaml/pathsoption1.trans', }, { 'format' => "yaml", 'input' => "fmt/yaml/arraylikestring.yaml", }; run_all_tests(@tests); 0;