Ensure cmap_info includes known entries and their expected level counts.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_050(id, nfail) use forcolormap_info, only: cmap_info integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "cmap_info has acton(256) and acton10(10)" logical :: ok integer :: i, n, ia, ia10 n = cmap_info%get_ncolormaps() ia = 0 ia10 = 0 do i = 1, n if (trim(cmap_info%get_name(i)) == "acton") ia = i if (trim(cmap_info%get_name(i)) == "acton10") ia10 = i end do ok = (n == 232) .and. (ia > 0) .and. (ia10 > 0) .and. & (cmap_info%get_levels(ia) == 256) .and. & (cmap_info%get_levels(ia10) == 10) call report_test(name, ok, id, nfail) end subroutine test_050