diff --git a/DIFF.md b/DIFF.md index 1c03a0f6..e4ecae4c 100644 --- a/DIFF.md +++ b/DIFF.md @@ -306,7 +306,7 @@ The following alternative comparators are provided: |`DiffComparators.epsilon(epsilon)`|Two values are equal when they are at most `epsilon` apart.

The comparator can be configured to use `epsilon` as an absolute (`.asAbsolute()`) threshold, or as relative (`.asRelative()`) to the larger value. Further, the threshold itself can be considered equal (`.asInclusive()`) or not equal (`.asExclusive()`):| |`DiffComparators.string()`|Two `StringType` values are compared while ignoring white space differences. For this comparison, sequences of whitespaces are collapesed into single whitespaces, leading and trailing whitespaces are removed. With `DiffComparators.string(false)`, string values are compared with the default comparator.| |`DiffComparators.duration(duration)`|Two `DateType` or `TimestampType` values are equal when they are at most `duration` apart. That duration is an instance of `java.time.Duration`.

The comparator can be configured to consider `duration` as equal (`.asInclusive()`) or not equal (`.asExclusive()`):