Change relativeTest and absoluteTest to be matchers that can be used in the following way:
expect(5.0, relativeEquals(5.0));