Skip to content

Commit

Permalink
use is(), not ok(), for testing string equality
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Rousse authored and Guillaume Rousse committed Jan 16, 2012
1 parent 8d8f58f commit 1681b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/validate.t
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ foreach my $test (@tests) {
my $msg;
my $ret = FusionInventory::Agent::Task::Deploy::_validateAnswer(\$msg, eval {decode_json($test->{json})});
ok(($ret ? 0 : 1) == ($test->{ret} ? 0 : 1), "returned code");
ok($msg eq $test->{msg}, "returned msg");
is($msg, $test->{msg}, "returned msg");
}

0 comments on commit 1681b21

Please sign in to comment.