Check if two logicals are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tester_t), | intent(inout) | :: | this |
The tester. |
||
logical, | intent(in) | :: | l1 |
Value to compare. |
||
logical, | intent(in) | :: | l2 |
Value to compare. |
subroutine assert_equal_l(this, l1, l2) class(tester_t), intent(inout) :: this !< The tester. logical, intent(in) :: l1 !< Value to compare. logical, intent(in) :: l2 !< Value to compare. this% n_tests = this% n_tests + 1 if (l1 .neqv. l2) then this% n_errors = this% n_errors + 1 end if end subroutine assert_equal_l