Bug 11221: (follow-up) test for NULL rather than empty string

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Galen Charlton 2013-11-19 15:35:25 +00:00
parent 11fbcb30de
commit 15812e80c8

View file

@ -75,7 +75,7 @@ ok ( $member->{firstname} eq $FIRSTNAME &&
, "Got member") , "Got member")
or diag("Mismatching member details: ".Dumper(\%data, $member)); or diag("Mismatching member details: ".Dumper(\%data, $member));
ok($member->{dateofbirth} eq '', "Empty dates handled correctly"); is($member->{dateofbirth}, undef, "Empty dates handled correctly");
$member->{firstname} = $CHANGED_FIRSTNAME; $member->{firstname} = $CHANGED_FIRSTNAME;
$member->{email} = $EMAIL; $member->{email} = $EMAIL;