Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't let the feedback on a failed test explode
  • Loading branch information
lizmat committed Jul 10, 2015
1 parent ae32e12 commit fadca9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Test.pm
Expand Up @@ -134,7 +134,7 @@ multi sub is(Mu $got, Mu:D $expected, $desc = '') is export {
my $test = $got eq $expected;
$ok = proclaim(?$test, $desc);
if !$test {
if [eq] ($got, $expected)>>.Str>>.subst(/\s/, '', :g) {
if try [eq] ($got, $expected)>>.Str>>.subst(/\s/, '', :g) {
# only white space differs, so better show it to the user
diag "expected: {$expected.perl}";
diag " got: {$got.perl}";
Expand Down

0 comments on commit fadca9d

Please sign in to comment.