Skip to content

Commit 7b4cb99

Browse files
committed
make sure unit test JSON prints are going to error_unit
1 parent 5cab5aa commit 7b4cb99

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/tests/jf_test_01.F90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ subroutine test_1(error_cnt)
7272
! print the parsed data to the console
7373
write(error_unit,'(A)') ''
7474
write(error_unit,'(A)') 'printing the file...'
75-
call json%print_file()
75+
call json%print_file(error_unit)
7676
if (json%failed()) then
7777
call json%print_error_message(error_unit)
7878
error_cnt = error_cnt + 1
@@ -336,7 +336,7 @@ subroutine test_1(error_cnt)
336336

337337
write(error_unit,'(A)') ''
338338
write(error_unit,'(A)') 'printing the modified structure...'
339-
call json%print_file()
339+
call json%print_file(error_unit)
340340
if (json%failed()) then
341341
call json%print_error_message(error_unit)
342342
error_cnt = error_cnt + 1
@@ -370,7 +370,7 @@ subroutine test_1(error_cnt)
370370

371371
write(error_unit,'(A)') ''
372372
write(error_unit,'(A)') 'printing the modified structure...'
373-
call json%print_file()
373+
call json%print_file(error_unit)
374374
if (json%failed()) then
375375
call json%print_error_message(error_unit)
376376
error_cnt = error_cnt + 1
@@ -379,7 +379,7 @@ subroutine test_1(error_cnt)
379379
write(error_unit,'(A)') ''
380380
write(error_unit,'(A)') 'printing the modified structure (compact mode)...'
381381
call json%initialize(no_whitespace=.true.)
382-
call json%print_file()
382+
call json%print_file(error_unit)
383383
if (json%failed()) then
384384
call json%print_error_message(error_unit)
385385
error_cnt = error_cnt + 1

src/tests/jf_test_05.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ subroutine test_5(error_cnt)
6060

6161
! print the parsed data to the console:
6262
write(error_unit,'(A)') 'print file...'
63-
call json%print_file()
63+
call json%print_file(error_unit)
6464
if (json%failed()) then
6565
call json%print_error_message(error_unit)
6666
error_cnt = error_cnt + 1

src/tests/jf_test_22.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ subroutine test_22(error_cnt)
5757
! print the parsed data to the console
5858
write(error_unit,'(A)') ''
5959
write(error_unit,'(A)') 'printing the file...'
60-
call json%print_file()
60+
call json%print_file(error_unit)
6161
if (json%failed()) then
6262
call json%print_error_message(error_unit)
6363
error_cnt = error_cnt + 1

src/tests/jf_test_23.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ subroutine test_23(error_cnt)
6868
! print the parsed data to the console
6969
write(error_unit,'(A)') ''
7070
write(error_unit,'(A)') 'printing the file...'
71-
call json%print_file()
71+
call json%print_file(error_unit)
7272
if (json%failed()) then
7373
call json%print_error_message(error_unit)
7474
error_cnt = error_cnt + 1

src/tests/jf_test_30.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ subroutine test_30(error_cnt)
4444

4545
call json%initialize(escape_solidus=(i==1), stop_on_error=.true.)
4646
call json%load_from_string(str)
47-
call json%print_file()
47+
call json%print_file(error_unit)
4848

4949
if (json%failed()) then
5050
call json%print_error_message(error_unit)

0 commit comments

Comments
 (0)