hasty_test_hash_table_homokey_failure Program

program~~hasty_test_hash_table_homokey_failure~~UsesGraph program~hasty_test_hash_table_homokey_failure hasty_test_hash_table_homokey_failure module~hasty hasty module~hasty->program~hasty_test_hash_table_homokey_failure iso_fortran_env iso_fortran_env iso_fortran_env->program~hasty_test_hash_table_homokey_failure module~tester tester iso_fortran_env->module~tester module~penf_stringify penf_stringify iso_fortran_env->module~penf_stringify module~tester->program~hasty_test_hash_table_homokey_failure module~hasty_dictionary_node hasty_dictionary_node module~hasty_dictionary_node->module~hasty module~hasty_dictionary hasty_dictionary module~hasty_dictionary_node->module~hasty_dictionary module~hasty_hash_table hasty_hash_table module~hasty_hash_table->module~hasty module~hasty_content_adt hasty_content_adt module~hasty_content_adt->module~hasty module~hasty_content_adt->module~hasty_dictionary_node module~hasty_content_adt->module~hasty_hash_table module~hasty_dictionary->module~hasty module~hasty_dictionary->module~hasty_hash_table module~hasty_key_base hasty_key_base module~hasty_key_base->module~hasty module~hasty_key_base->module~hasty_dictionary_node module~hasty_key_base->module~hasty_hash_table module~hasty_key_base->module~hasty_dictionary module~hasty_key_morton hasty_key_morton module~hasty_key_base->module~hasty_key_morton module~hasty_key_morton->module~hasty module~penf penf module~penf->module~hasty_dictionary_node module~penf->module~hasty_hash_table module~penf->module~hasty_dictionary module~penf->module~hasty_key_base module~penf->module~hasty_key_morton module~penf_global_parameters_variables penf_global_parameters_variables module~penf_global_parameters_variables->module~penf module~penf_b_size penf_b_size module~penf_global_parameters_variables->module~penf_b_size module~penf_global_parameters_variables->module~penf_stringify module~penf_b_size->module~penf module~penf_b_size->module~penf_stringify module~penf_stringify->module~penf
Help


HASTY test hash table homogeneous key failure.



Variables

Type AttributesNameInitial
type(tester_t) :: hasty_tester

Tests handler.

type(hash_table) :: a_table

A table.


Source Code

program hasty_test_hash_table_homokey_failure
!-----------------------------------------------------------------------------------------------------------------------------------
!< HASTY test hash table homogeneous key failure.
!-----------------------------------------------------------------------------------------------------------------------------------
use, intrinsic :: iso_fortran_env, only : int32
use hasty
use tester
!-----------------------------------------------------------------------------------------------------------------------------------

!-----------------------------------------------------------------------------------------------------------------------------------
type(tester_t)   :: hasty_tester !< Tests handler.
type(hash_table) :: a_table      !< A table.
!-----------------------------------------------------------------------------------------------------------------------------------

!-----------------------------------------------------------------------------------------------------------------------------------
call a_table%initialize(homogeneous=.true., typeguard_key='a string', typeguard_content=1_int32)
call a_table%add_clone(key=5_int32, content=13_int32) ! An error is raised (if all go rigth)

call hasty_tester%init
call hasty_tester%assert_equal(len(a_table), 1)
call hasty_tester%print
!-----------------------------------------------------------------------------------------------------------------------------------
endprogram hasty_test_hash_table_homokey_failure