A Test::Deep plugin for comparing YAML-encoded data
Perl
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib/Test/Deep
t
.gitignore
.mailmap
CONTRIBUTING
Changes
LICENSE
README.pod
TODO
dist.ini

README.pod

NAME

Test::Deep::YAML - A Test::Deep plugin for comparing YAML-encoded data

VERSION

version 0.004

SYNOPSIS

use Test::More;
use Test::Deep;
use Test::Deep::YAML;

cmp_deeply(
    "---\nfoo: bar\n",
    yaml({ foo => 'bar' }),
    'YAML-encoded data is correct',
);

DESCRIPTION

This module provides the yaml function to indicate that the target can be parsed as a YAML string, and should be decoded before being compared to the indicated expected data.

FUNCTIONS

yaml

Contains the data which should match corresponding data in the "got" structure after it has been YAML-decoded.

SUPPORT

Bugs may be submitted through the RT bug tracker (or bug-Test-Deep-YAML@rt.cpan.org). I am also usually active on irc, as 'ether' at irc.perl.org.

SEE ALSO

AUTHOR

Karen Etheridge <ether@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Karen Etheridge.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.