Skip to content

Commit f1b165c

Browse files
committed
try this to test exception.
1 parent 3c83669 commit f1b165c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tests/jf_test_46.F90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ subroutine test_46(error_cnt)
243243
end if
244244

245245
! now, we try them when an exception is active:
246-
call json_f%get(CK_'not_there', ival) ! this will raise an exception
246+
call json_f%destroy()
247+
json_f = json_file(CK_'{"x": 1.0e.2.1}') ! this will raise an exception
247248
call json_f%get(CK_'not_there', rval, found, default=99.0_RK)
248249
call json_f%get(CK_'not_there', cvec, found, default=[CK_'1'])
249250
call json_f%get(CK_'not_there', cvec2, ilen, found, default=cvec_default)

0 commit comments

Comments
 (0)