Test::DifferencesTest::Differences Perl module contains test strings and data structures and show differences if not ok. | |
Download |
Test::Differences Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Barrie Slaymaker
- Publisher web site:
- http://search.cpan.org/~rbs/
Test::Differences Tags
Test::Differences Description
Test::Differences Perl module contains test strings and data structures and show differences if not ok. Test::Differences Perl module contains test strings and data structures and show differences if not ok.SYNOPSIS use Test; ## Or use Test::More use Test::Differences; eq_or_diff $got, "anbncn", "testing strings"; eq_or_diff @got, , "testing arrays"; ## Passing options: eq_or_diff $got, $expected, $name, { context => 300 }; ## options ## Using with DBI-like data structures use DBI; ... open connection & prepare statement and @expected_... here... eq_or_diff $sth->fetchall_arrayref, @expected_arrays "testing DBI arrays"; eq_or_diff $sth->fetchall_hashref, @expected_hashes, "testing DBI hashes"; ## To force textual or data line numbering (text lines are numbered 1..): eq_or_diff_text ...; eq_or_diff_data ...; Requirements: · Perl
Test::Differences Related Software