Skip to content

Commit f74720b

Browse files
test: improve a test to execute untested code in write_json_info
1 parent 2794a5e commit f74720b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/command-line-options.src/info-java-dir.at

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ AT_DATA([callee.cbl], [
1010
LINKAGE SECTION.
1111
01 P1 PIC X ANY LENGTH.
1212
01 P2 PIC 99.
13-
PROCEDURE DIVISION USING P1 P2.
13+
01 P3 PIC 9V9.
14+
PROCEDURE DIVISION USING P1 P2 P3.
1415
GOBACK.
1516
])
1617

@@ -38,6 +39,10 @@ AT_CHECK([cat info_callee.json], [0],
3839
{
3940
"variable_name": "P2",
4041
"java_type": "int"
42+
},
43+
{
44+
"variable_name": "P3",
45+
"java_type": "double"
4146
}
4247
@:>@
4348
}

0 commit comments

Comments
 (0)