Check if two integer (8 bits) arrays (rank 1) are equal.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(tester_t), | intent(inout) | :: | this |
The tester. |
||
integer(kind=int8), | intent(in), | dimension(:) | :: | i1 |
Value to compare. |
|
integer(kind=int8), | intent(in), | dimension(:) | :: | i2 |
Value to compare. |
subroutine assert_equal_i8_1(this, i1, i2) class(tester_t), intent(inout) :: this !< The tester. integer(int8), dimension(:), intent(in) :: i1 !< Value to compare. integer(int8), dimension(:), intent(in) :: i2 !< Value to compare. this% n_tests = this% n_tests + 1 if ( size(i1) .ne. size(i2) ) then this% n_errors = this% n_errors + 1 else if ( maxval(abs(i1-i2)) > 0 ) then this% n_errors = this% n_errors + 1 end if end if end subroutine assert_equal_i8_1