Check if two reals (64 bits) are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tester_t), | intent(inout) | :: | this |
The tester. |
||
real(kind=real64), | intent(in) | :: | r1 |
Value to compare. |
||
real(kind=real64), | intent(in) | :: | r2 |
Value to compare. |
subroutine assert_equal_r64(this, r1, r2) class(tester_t), intent(inout) :: this !< The tester. real(real64), intent(in) :: r1 !< Value to compare. real(real64), intent(in) :: r2 !< Value to compare. this% n_tests = this% n_tests + 1 if (r1 .ne. r2) then this% n_errors = this% n_errors + 1 end if end subroutine assert_equal_r64