File tree 1 file changed +4
-20
lines changed
1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 35
35
36
36
type (fckit_Configuration) :: config
37
37
type (fckit_Configuration) :: nested
38
- type (fckit_Configuration) :: list(2 )
38
+ type (fckit_Configuration), allocatable :: list(: )
39
39
logical :: found
40
40
logical :: logval
41
41
integer :: intval
73
73
call config% set(" logical_true" ,.True. )
74
74
call config% set(" logical_false" ,.False. )
75
75
76
+
76
77
nested = fckit_Configuration()
77
78
call nested% set(" n1" ,11 )
78
79
call nested% set(" n2" ,12 )
79
80
81
+ allocate ( list(2 ) )
80
82
do j= 1 ,2
81
83
list(j) = fckit_Configuration()
82
84
call list(j)% set(" l1" ,21 )
94
96
call nested% final()
95
97
#endif
96
98
99
+
97
100
! --------------------- JSON ------------------
98
101
99
102
call fckit_log% info(" config = " // config% json())
314
317
#endif
315
318
END_TEST
316
319
317
- TEST(test_throw)
318
- ! ! ENABLE TO TEST IF THROW WILL WORK
319
-
320
- #if 0
321
- use fckit_configuration_module
322
- type(fckit_Configuration) :: config
323
-
324
- integer :: missing_value
325
-
326
- write(0,*) "~~~~~~~~~~~~~~ SCOPE BEGIN ~~~~~~~~~~~~~~~"
327
-
328
- config = fckit_Configuration()
329
-
330
- call config%get_or_die("missing",missing_value)
331
-
332
- call config%final()
333
- write(0,*) "~~~~~~~~~~~~~~~ SCOPE END ~~~~~~~~~~~~~~~~"
334
- #endif
335
- END_TEST
336
320
! -----------------------------------------------------------------------------
337
321
338
322
END_TESTSUITE
You can’t perform that action at this time.
0 commit comments