Main > Programming > Libraries >

Test::Deep 0.096

Test::Deep 0.096

Sponsored Links

Test::Deep 0.096 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.030 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 844
Date added: 2007-07-02
Publisher: Fergal Daly

Test::Deep 0.096 description

Test::Deep is a Perl module for extremely flexible deep comparison.

SYNOPSIS

use Test::More tests => $Num_Tests;
use Test::Deep;

cmp_deeply(
$actual_horrible_nested_data_structure,
$expected_horrible_nested_data_structure,
"got the right horrible nested data structure"
);

cmp_deeply(
$object,
methods(name => "John", phone => "55378008"),
"object methods ok"
);

cmp_deeply(
@array,
[$hash1, $hash2, ignore(
"first 2 elements are as expected, ignoring 3"
);

cmp_deeply(
$object,
noclass({value => 5}),
"object looks ok, not checking its class"
);

cmp_deeply(
@result,
bag(a, b, {key => [1, 2]}),
"array has the 3 things we wanted in some order"
);

If you dont know anything about automated testing in Perl then you should probably read about Test::Simple and Test::More before preceding. Test::Deep uses the Test::Builder framework.

Test::Deep gives you very flexible ways to check that the result you got is the result you were expecting. At its simplest it compares two structures by going through each level, ensuring that the values match, that arrays and hashes have the same elements and that references are blessed into the correct class. It also handles circular data structures without getting caught in an infinite loop.
Where it becomes more interesting is in allowing you to do something besides simple exact comparisons. With strings, the eq operator checks that 2 strings are exactly equal but sometimes thats not what you want. When you dont know exactly what the string should be but you do know some things about how it should look, eq is no good and you must use pattern matching instead. Test::Deep provides pattern matching for complex data structures.

Test::Deep 0.096 Screenshot

Advertisements

Test::Deep 0.096 Keywords

Bookmark Test::Deep 0.096

Hyperlink code:
Link for forum:

Test::Deep 0.096 Copyright

WareSeeker periodically updates pricing and software information of Test::Deep 0.096 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Test::Deep 0.096 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Test::Dependencies is a Perl module to ensure that your Makefile.PL specifies all module dependencies. Free Download
Test::XML::Order is a Perl module to compare the order of XML tags in perl tests. Free Download
Test::Differences Perl module contains test strings and data structures and show differences if not ok. Free Download
Test::Data is a Perl module to test functions for particular variable types. Free Download
Test::ISBN is a Perl module to check international standard book numbers. Free Download
Acme::Tests is a Perl module to see how much do you know. Free Download
Test::UseAllModules is a Perl module that uses use_ok() function for all modules MANIFESTed. Free Download
Atheism is an extremely flexible and configurable multi purpose Perl script for X-Chat. Free Download