Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I'm curious. Why do you prefer Test::Differences vs Test::Deep? Is it better diagnostics for failing tests, speed, personal preference, or something else altogether?
    • I just added Test::Deep. Consider the code:

      use Our::Test::More 'no_plan';
      my ( $foo, $bar ) = ( [qw/1 2 3 4 5/], [qw/1 2 trois 4 cinq/] );
      eq_or_diff $foo, $bar;
      cmp_deeply $foo, $bar;

      Consider the output:

      #   Failed test at test.t line 10.
      # +----+-----+----------+
      # | Elt|Got  |Expected  |
      # +----+-----+----------+
      # |   0|1    |1         |
      # |   1|2    |2         |
      # *   2|3    |