Skip to content

Commit c2aac98

Browse files
committed
test 47 fix
there was an intent(out) variable used before it was assigned a value. some other formatting updates for unit tests
1 parent 18f8091 commit c2aac98

32 files changed

+18
-39
lines changed

src/tests/jf_test_01.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ subroutine test_1(error_cnt)
2727

2828
implicit none
2929

30+
integer,intent(out) :: error_cnt
31+
3032
type(json_file) :: json !! the JSON structure read from the file
3133
type(json_value),pointer :: p !! a pointer for low-level manipulations
3234
type(json_core) :: core !! factory for manipulating `json_value` pointers
33-
integer,intent(out) :: error_cnt
3435
integer(IK) :: ival
3536
character(kind=json_CK,len=:),allocatable :: cval
3637
real(wp) :: rval
@@ -508,7 +509,6 @@ program jf_test_1
508509
use jf_test_1_mod , only: test_1
509510
implicit none
510511
integer :: n_errors
511-
n_errors = 0
512512
call test_1(n_errors)
513513
if (n_errors /= 0) stop 1
514514

src/tests/jf_test_02.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,6 @@ program jf_test_2
416416
use jf_test_2_mod , only: test_2
417417
implicit none
418418
integer :: n_errors
419-
n_errors = 0
420419
call test_2(n_errors)
421420
if (n_errors /= 0) stop 1
422421

src/tests/jf_test_03.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ subroutine test_3(error_cnt)
2727
implicit none
2828

2929
integer,intent(out) :: error_cnt
30+
3031
integer(IK) :: ival
3132
character(kind=json_CK,len=:),allocatable :: cval
3233
real(wp) :: rval
@@ -151,7 +152,6 @@ program jf_test_3
151152
use jf_test_3_mod , only: test_3
152153
implicit none
153154
integer :: n_errors
154-
n_errors = 0
155155
call test_3(n_errors)
156156
if (n_errors /= 0) stop 1
157157

src/tests/jf_test_04.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ subroutine test_4(error_cnt)
3131
implicit none
3232

3333
integer,intent(out) :: error_cnt
34+
3435
type(json_value),pointer :: p,inp
3536
type(json_file) :: json
3637
type(json_core) :: core !! factory for manipulating `json_value` pointers
@@ -172,7 +173,6 @@ program jf_test_4
172173
use jf_test_4_mod , only: test_4
173174
implicit none
174175
integer :: n_errors
175-
n_errors = 0
176176
call test_4(n_errors)
177177
if (n_errors /= 0) stop 1
178178
end program jf_test_4

src/tests/jf_test_05.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ subroutine test_5(error_cnt)
2929
implicit none
3030

3131
integer,intent(out) :: error_cnt
32+
3233
integer(IK) :: vv
3334
integer(IK),dimension(:),allocatable :: vvv
3435
real(wp) :: d
@@ -117,7 +118,6 @@ program jf_test_5
117118
use jf_test_5_mod , only: test_5
118119
implicit none
119120
integer :: n_errors
120-
n_errors = 0
121121
call test_5(n_errors)
122122
if (n_errors /= 0) stop 1
123123

src/tests/jf_test_06.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ program jf_test_6
120120
use jf_test_6_mod , only: test_6
121121
implicit none
122122
integer :: n_errors
123-
n_errors = 0
124123
call test_6(n_errors)
125124
if (n_errors /= 0) stop 1
126125

src/tests/jf_test_07.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ program jf_test_7
273273
use jf_test_7_mod , only: test_7
274274
implicit none
275275
integer :: n_errors
276-
n_errors = 0
277276
call test_7(n_errors)
278277
if (n_errors /= 0) stop 1
279278

src/tests/jf_test_08.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ program jf_test_8
138138
use jf_test_8_mod , only: test_8
139139
implicit none
140140
integer :: n_errors
141-
n_errors = 0
142141
call test_8(n_errors)
143142
if (n_errors /= 0) stop 1
144143

src/tests/jf_test_09.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ program jf_test_9
153153
use jf_test_9_mod , only: test_9
154154
implicit none
155155
integer :: n_errors
156-
n_errors = 0
157156
call test_9(n_errors)
158157
if (n_errors /= 0) stop 1
159158

src/tests/jf_test_10.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ program jf_test_10
349349
use jf_test_10_mod , only: test_10
350350
implicit none
351351
integer :: n_errors
352-
n_errors = 0
353352
call test_10(n_errors)
354353
if (n_errors /= 0) stop 1
355354

0 commit comments

Comments
 (0)