in reply to Test::More and is_array

Test::More::eq_array is supposed to take two array refs as args.

the lowliest monk

Replies are listed 'Best First'.
Re^2: Test::More and is_array
by geektron (Curate) on Jun 09, 2005 at 20:33 UTC
    ah ... that makes some sense, but i would expect the test to fail if i only passed in one array ...

    i'll have to build another test then. i just want to make sure i'm returning a list.

      As stvn already pointed out, eq_array is not a test like ok, but a convenience function to use in such a test, e.g.

      ok( eq_array( $list, $expected ), 'some test' );

      the lowliest monk

        i just updated with what i wanted, after getting the mistake about is_array cleared up.