Subject: | `ok $got == $expected;` does not work like `is_deeply $got, $expected;` as advertised |
The description says:
# Can write... # Instead of...
[...]
ok $got == $expected; is_deeply $got, $expected;
The behaviour seems more like a plain == comparison.
eg. these all pass:
ok @abc == @abc;
ok \@abc == \@abc;
ok @abc == 3;
these all fail:
ok \@abc == [ @abc ];
ok \@abc == [ 1, 2, 3 ];
ok [ 1, 2, 3 ] == [ 1, 2, 3 ];
It turns out those three all pass if I use ~~ instead of ==
Thanks