Skip to content

Commit

Permalink
Creating more unit tests for NumericFieldComparatorTest (#8604)
Browse files Browse the repository at this point in the history
* Inserting two more tests cases at NumericFieldComparatorTest

* Fixing missing test
  • Loading branch information
paulohgontijoo authored Mar 26, 2022
1 parent 1624405 commit e9d3e67
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,15 @@ public void compareWithPlusString() {
public void compareWordWithMinus() {
assertEquals(-1, comparator.compare("-abc", "-5"));
}

@Test
void compareNumericSignalWithoutNumberWithLenghtBiggerThanOne() {
assertEquals(2, comparator.compare("- ", "+ "));
}

@Test
void compareNumericSignalAfterNumber() {
assertEquals(-2, comparator.compare("5- ", "7+ "));
}

}

0 comments on commit e9d3e67

Please sign in to comment.