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