Ported the `DoubleComparator` tests.