3 use fruit
, only : assert_equals, add_fail, assert_false, assert_true
13 character(7),
parameter :: name=
'First' 14 integer :: numActive,index
18 call assert_equals(1, numactive,
"First element")
22 call assert_equals(1, numactive,
"Repeated element")
28 character(7),
parameter :: name=
'Set' 29 integer :: numActive,new_numActive,index
36 call assert_equals(new_numactive, numactive,
"Overwritten element")
40 call assert_equals(
"New",descriptor%name,
"Check name of set element")
46 integer :: numActive,new_numActive,index
54 call assert_equals(new_numactive, numactive,
"Out of range element")
68 use fruit
, only : init_fruit, run_test_case, fruit_summary
integer function, public get_max_number_q_indices()
Gets the maximum number of Q indicies.
subroutine test_q_indices_limits
type(q_metadata_type) function, public get_indices_descriptor(i)
Retrieves the indicies descriptor at a specific location.
This manages the Q variables and specifically the mapping between names and the index that they are s...
integer function, public get_number_active_q_indices()
Gets the number of active Q indicies (i.e. those allocated to specific uses)
program test_q_indices_driver
subroutine test_get_q_index
subroutine test_q_indices_set
subroutine, public set_q_index(index, name)
Sets a Q index to be active at a specific index and sets the name.
integer function, public get_q_index(name, assigning_component)
Add in a new entry into the register if the name does not already exist or return the index of the pr...