Class FloatingPointMismatchFilter

    • Constructor Detail

      • FloatingPointMismatchFilter

        public FloatingPointMismatchFilter​(FloatingPointTolerance tolerance,
                                           String separator)
        Declares a filter using the specified tolerance range. The line is assumed to consist of floating point values separated by the given separator.
        Parameters:
        tolerance - the permitted degree of error in values
        separator - the character sequence separating field values
    • Method Detail

      • ignoreMismatch

        public boolean ignoreMismatch​(String expected,
                                      String actual)
        Description copied from interface: Assertions.MismatchFilter
        Indicates whether the specified mismatch should be ignored for comparison purposed.
        Specified by:
        ignoreMismatch in interface Assertions.MismatchFilter
        Parameters:
        expected - the expected line
        actual - the actual line found
        Returns:
        true if the mismatch is not significant, false if it is.