When you need not check for an exact match but want to allow a range of values
you may use ExpectationBoundary which tests against a lower
and an upper boundary value. Since the comparison is done with
operator<() your own data types should implement it
meaningfully.
ExpectationBoundary <int> eb ("verifyBoundary", 0);
eb.setExpected(111, 333);
eb.setActual(222);