Skip to content

Commit

Permalink
add a check condition when actual result and expected result are not …
Browse files Browse the repository at this point in the history
…same
  • Loading branch information
aressu1985 committed Mar 22, 2024
1 parent 8e0ddd5 commit b213692
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Binary file modified lib/mo-tester-1.0-SNAPSHOT.jar
Binary file not shown.
6 changes: 5 additions & 1 deletion src/main/java/io/mo/result/RSCell.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ public boolean equals(RSCell cell){
cell.type == Types.BIGINT ||
(cell.type == Types.VARCHAR && isNumeric(v1) &&isNumeric(v2))) {


if(!isNumeric(v1)){
LOG.error(String.format("value[%s] does not equal to value[%s]",v1,v2));
return false;
}

BigDecimal bd1 = BigDecimal.valueOf(Double.valueOf(v1)).stripTrailingZeros();
BigDecimal bd2 = BigDecimal.valueOf(Double.valueOf(v2)).stripTrailingZeros();
//System.out.println("bd1 = " + bd1);
Expand Down

0 comments on commit b213692

Please sign in to comment.