Skip to content

Commit 06a12a3

Browse files
committed
added new unit test cases.
1 parent 5856e7a commit 06a12a3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/tests/jf_test_2.f90

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,17 @@ subroutine test_2(error_cnt)
138138
call json%print_error_message(error_unit)
139139
error_cnt = error_cnt + 1
140140
end if
141+
call json%add(inp, 'special chars', '\ /')
142+
if (json%failed()) then
143+
call json%print_error_message(error_unit)
144+
error_cnt = error_cnt + 1
145+
end if
146+
call json%add(inp, 'special chars in key \ /', '\ /')
147+
if (json%failed()) then
148+
call json%print_error_message(error_unit)
149+
error_cnt = error_cnt + 1
150+
end if
151+
141152
nullify(inp)
142153

143154
!trajectory variables:

0 commit comments

Comments
 (0)