Skip Menu |

This queue is for tickets about the Test-Expr CPAN distribution.

Report information
The Basics
Id: 122361
Status: resolved
Priority: 0/
Queue: Test-Expr

People
Owner: Nobody in particular
Requestors: stephen.thirlwall [...] strategicdata.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.000003
Fixed in: (no value)



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
Subject: Re: [rt.cpan.org #122361] `ok $got == $expected;` does not work like `is_deeply $got, $expected;` as advertised
Date: Thu, 6 Jul 2017 05:41:44 +1000
To: bug-Test-Expr [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Definitely a documentation error. I've corrected it for the next release (now on CPAN). Many thanks, Stephen! Damian