public class FloatingPointMismatchFilter extends Object implements Assertions.MismatchFilter
IGNORE_SORT_ORDER, NO_FILTER
Constructor and Description |
---|
FloatingPointMismatchFilter(FloatingPointTolerance tolerance,
String separator)
Declares a filter using the specified tolerance range.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ignoreMismatch(String expected,
String actual)
Indicates whether the specified mismatch should be ignored
for comparison purposed.
|
boolean |
ignoreSortOrder()
Indicates whether the filter should ignore sort order
|
public FloatingPointMismatchFilter(FloatingPointTolerance tolerance, String separator)
tolerance
- the permitted degree of error in valuesseparator
- the character sequence separating field valuespublic boolean ignoreMismatch(String expected, String actual)
Assertions.MismatchFilter
ignoreMismatch
in interface Assertions.MismatchFilter
expected
- the expected lineactual
- the actual line foundtrue
if the mismatch is not significant,
false
if it is.public boolean ignoreSortOrder()
Assertions.MismatchFilter
ignoreSortOrder
in interface Assertions.MismatchFilter
Copyright © 2024 Actian Corporation. All rights reserved.