Skip to content

Commit

Permalink
let test_stats_cmp tolerate broadcasting
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Apr 4, 2024
1 parent f6170af commit 9432545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/stats_glm.t
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ sub test_stats_cmp {
($got, $exp) = map &$func($_), $got, $exp;
}
$exp = PDL->topdl($exp);
$error += my $this_diff = $got - $exp;
$error = $error + (my $this_diff = $got - $exp);
fail($_), diag "got $m->{$_}\nexpected $exp" if any($this_diff->abs > $eps);
}
return $error;
Expand Down

0 comments on commit 9432545

Please sign in to comment.