Skip to content

Commit 75bd3c5

Browse files
committed
update unit test.
1 parent a00be90 commit 75bd3c5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/tests/jf_test_34.F90

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ subroutine test_34(error_cnt)
6767
call json%destroy(p)
6868

6969
call json%create_array(p,'integer_array')
70-
call json%create_integer(e,1,'')
70+
call json%create_integer(e,1,CK_'')
7171
call json%add(p,e)
7272
call json%string_info(p,max_str_len=max_str_len,ilen=ilen,found=found)
7373
call json%destroy(p)
@@ -79,7 +79,7 @@ subroutine test_34(error_cnt)
7979
call json%destroy(p)
8080

8181
call json%create_array(p,'integer_array')
82-
call json%create_integer(e,1,'')
82+
call json%create_integer(e,1,CK_'')
8383
call json%add(p,e)
8484
call json%string_info(p,max_str_len=max_str_len,ilen=ilen)
8585
call json%clear_exceptions()
@@ -137,6 +137,11 @@ subroutine test_34(error_cnt)
137137

138138
end do
139139

140+
! rename:
141+
call json%initialize(trailing_spaces_significant=.true.)
142+
call json%create_integer(p,1,CK_'a')
143+
call json%rename(p,CK_'b ')
144+
140145
end subroutine test_34
141146

142147
end module jf_test_34_mod

0 commit comments

Comments
 (0)