@@ -37,6 +37,17 @@ subroutine test_15(error_cnt)
37
37
write (error_unit,' (A)' ) ' '
38
38
39
39
error_cnt = 0
40
+
41
+ nullify(json)
42
+ nullify(p)
43
+
44
+ call json_parse(json, ' {"int": 1, "real": 2.0, "logical": true}' )
45
+ call json_get(json,' real' , i)
46
+ call json_get(json,' logical' ,i)
47
+ call json_get(json,' integer' ,d)
48
+ call json_get(json,' logical' ,d)
49
+ call json_get(json,' integer' ,tf)
50
+ call json_get(json,' real' , tf)
40
51
41
52
call json_check_for_errors(status_ok, error_msg) ! error condition true
42
53
@@ -65,15 +76,7 @@ subroutine test_15(error_cnt)
65
76
call json_print(json,- 1 ) ! invalid input
66
77
call json_print(json,filename= ' ' ) ! invalid input
67
78
68
- call json_initialize() ! clear exceptions
69
-
70
- call json_parse(json, ' {"int": 1, "real": 2.0, "logical": true}' )
71
- call json_get(json,' real' , i)
72
- call json_get(json,' logical' ,i)
73
- call json_get(json,' integer' ,d)
74
- call json_get(json,' logical' ,d)
75
- call json_get(json,' integer' ,tf)
76
- call json_get(json,' real' , tf)
79
+ call json_initialize() ! clear exceptions
77
80
78
81
end subroutine test_15
79
82
0 commit comments