Skip to content

Commit 99a20ae

Browse files
authored
Binary Search: Resolve the error about WS-ARRAY. (#172)
- While the test assumes that WS-ARRAY is a string, the template cobol code delcared it as an integer array. The revised template now declares WS-ARRAY as a string.
1 parent 0427a0f commit 99a20ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

exercises/practice/binary-search/src/binary-search.cob

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
01 WS-RESULT PIC 99.
88
01 WS-ERROR PIC X(40).
99
01 WS-COUNT PIC 99.
10-
01 WS-ARRAY-TABLE.
11-
02 WS-ARRAY OCCURS 1 TO 20 DEPENDING ON WS-COUNT.
12-
05 ROWELEM PIC 9(4).
10+
01 WS-ARRAY PIC X(60).
1311

1412
PROCEDURE DIVISION.
1513

0 commit comments

Comments
 (0)