Tests with non-captured results.
subroutine tests_non_captured
!---------------------------------------------------------------------------------------------------------------------------------
!< Tests with non-captured results.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
print '(A)', 'Keys in dictionary:'
call a_dictionary%print_keys
print "(A)", 'Explicit loop over all nodes (key & contents)'
do while(a_dictionary%loop(key=a_key, content=a_content))
if (allocated(a_key)) then
select type(a_key)
type is(integer(int32))
write(output_unit, "(A,I3)", advance='no') 'key ', a_key
endselect
endif
if (associated(a_content)) then
select type(a_content)
type is(integer(int32))
print "(A,I3)", ' content ', a_content
endselect
endif
enddo
print "(A)", 'Repeating the loop to check saved values (key & contents)'
do while(a_dictionary%loop(key=a_key, content=a_content))
if (allocated(a_key)) then
select type(a_key)
type is(integer(int32))
write(output_unit, "(A,I3)", advance='no') 'key ', a_key
endselect
endif
if (associated(a_content)) then
select type(a_content)
type is(integer(int32))
print "(A,I3)", ' content ', a_content
endselect
endif
enddo
call test_dictionary_finalize
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine tests_non_captured