Smoke test: print() should be callable after a normal set() without crashing.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_077(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "print() callable after set()" logical :: ok type(Colormap) :: cm call cm%set("viridis", 0.0_wp, 1.0_wp) call cm%print() ok = .true. call report_test(name, ok, id, nfail) end subroutine test_077