Test::Deep::YAML - A Test::Deep plugin for comparing YAML-encoded data
version 0.004
use Test::More; use Test::Deep; use Test::Deep::YAML; cmp_deeply( "---\nfoo: bar\n", yaml({ foo => 'bar' }), 'YAML-encoded data is correct', );
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.
yaml
Contains the data which should match corresponding data in the "got" structure after it has been YAML-decoded.
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.
irc.perl.org
Test::Deep
Test::Deep::JSON
Karen Etheridge <ether@cpan.org>
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.
To install Test::Deep::YAML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Deep::YAML
CPAN shell
perl -MCPAN -e shell install Test::Deep::YAML
For more information on module installation, please visit the detailed CPAN module installation guide.