Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Test::Differences 0.500

    Download button

    No screenshots available
    Downloads: 357  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Barrie Slaymaker | More programs
    Perl Artistic License / FREE
    July 18th, 2007, 22:06 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Test::Differences description

    A module which 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, [qw( a b c )], "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 ...;


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    test strings | data structures | Perl module | Test | test | strings

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM