Skip to content

Commit

Permalink
add a test to parse api.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cotto committed Feb 2, 2011
1 parent ed5319a commit d775ac6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions t/library/yaml_tiny.t
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,24 @@ yaml_ok(
'empty_comment_in_hash',
);


# Complex keys
#yaml_ok(
# "---\na b: c d\n",
# [ { 'a b' => 'c d' } ],
# 'key_with_whitespace',
#);

# try parsing api.yaml
try {
my $parser := YAML::Tiny.new;
my $result := $parser.read_string(slurp('api.yaml'));
ok(1, "parsed api.yaml");
CATCH {
nok(1, "failed to parse api.yaml");
}
}

done_testing();

our sub yaml_ok($yaml, $expected, $description, *%adverbs) {
Expand Down

0 comments on commit d775ac6

Please sign in to comment.