The near(expected, tolerance) and relativelyNear(expected, tolerance) Hamcrest matchers currently lack overloads for REAL64. When used with a REAL64 argument, NAG rejects the call with:
No specific match for reference to generic NEAR
Example that fails to compile:
real(REAL64) :: q_out(16, 11)
@assert_that(q_out, every_item(is(near(7.0_REAL64, 1.e-10_REAL64))))
Request:
Add overloads of near() and relativelyNear() for REAL64, matching what @assertEqual already supports. Ideally the interface would be generic over kind (REAL32/REAL64) and rank.
Workaround:
Use @assertEqual(expected, array, tolerance) which already handles REAL64 and arbitrary ranks.
The
near(expected, tolerance)andrelativelyNear(expected, tolerance)Hamcrest matchers currently lack overloads for REAL64. When used with a REAL64 argument, NAG rejects the call with:Example that fails to compile:
Request:
Add overloads of
near()andrelativelyNear()for REAL64, matching what@assertEqualalready supports. Ideally the interface would be generic over kind (REAL32/REAL64) and rank.Workaround:
Use
@assertEqual(expected, array, tolerance)which already handles REAL64 and arbitrary ranks.