Skip to content

Commit

Permalink
[fix](regression) fix regression framework bug: if real test result i…
Browse files Browse the repository at this point in the history
…s negative, it will miss check test result
  • Loading branch information
jacktengg committed Oct 26, 2023
1 parent d9a3aa5 commit 9daf144
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class OutputUtils {
double expectDouble = Double.parseDouble(expectCell)
double realDouble = Double.parseDouble(realCell)

double realRelativeError = Math.abs(expectDouble - realDouble) / realDouble
double realRelativeError = Math.abs(expectDouble - realDouble) / Math.abs(realDouble)
double expectRelativeError = 1e-8

if (expectRelativeError < realRelativeError) {
Expand Down

0 comments on commit 9daf144

Please sign in to comment.