3 -- Grant of Unlimited Rights
5 -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
6 -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
7 -- unlimited rights in the software and documentation contained herein.
8 -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
9 -- this public release, the Government intends to confer upon all
10 -- recipients unlimited rights equal to those held by the Government.
11 -- These rights include rights to use, duplicate, release or disclose the
12 -- released technical data and computer software in whole or in part, in
13 -- any manner and for any purpose whatsoever, and to have or permit others
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
19 -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
20 -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
21 -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
22 -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
23 -- PARTICULAR PURPOSE OF SAID MATERIAL.
26 -- CHECK THAT WHEN THE LINE AND PAGE LENGTH ARE NONZERO, LINE AND
27 -- PAGE TERMINATORS ARE OUTPUT AT THE APPROPRIATE POINTS.
33 -- TBN 11/04/86 REVISED TEST TO OUTPUT A NOT_APPLICABLE
34 -- RESULT WHEN FILES ARE NOT SUPPORTED.
35 -- JLH 08/27/87 COMPLETELY REVISED TEST.
36 -- LDC 05/26/88 ADDED "FILE" PARAMETERS.
45 INCOMPLETE
: EXCEPTION;
47 TWO
: CONSTANT COUNT
:= COUNT
(IDENT_INT
(2));
48 TEN
: CONSTANT COUNT
:= COUNT
(IDENT_INT
(10));
49 THREE
: CONSTANT COUNT
:= COUNT
(IDENT_INT
(3));
50 ITEM1
: STRING (1..10);
51 ITEM2
: STRING (1..2);
55 TEST
("CE3301A", "CHECK THAT WHEN THE LINE AND PAGE LENGTH ARE " &
56 "NONZERO, LINE AND PAGE TERMINATORS ARE " &
57 "OUTPUT AT THE APPROPRIATE POINTS");
60 CREATE
(FILE
, OUT_FILE
, LEGAL_FILE_NAME
);
63 NOT_APPLICABLE
("USE_ERROR RAISED ON TEXT CREATE " &
64 "WITH OUT_FILE MODE");
67 NOT_APPLICABLE
("NAME_ERROR RAISED ON TEXT CREATE " &
68 "WITH OUT_FILE MODE");
71 FAILED
("UNEXPECTED EXCEPTION RAISED ON TEXT CREATE");
75 IF LINE_LENGTH
(FILE
) /= UNBOUNDED
THEN
76 FAILED
("LINE LENGTH NOT INITIALLY UNBOUNDED");
79 IF PAGE_LENGTH
(FILE
) /= UNBOUNDED
THEN
80 FAILED
("PAGE LENGTH NOT INITIALLY UNBOUNDED");
83 SET_LINE_LENGTH
(FILE
,TEN
);
84 SET_PAGE_LENGTH
(FILE
,TWO
);
90 IF PAGE
(FILE
) /= 2 AND LINE
(FILE
) /= 1 THEN
91 FAILED
("LINE AND PAGE LENGTHS WERE NOT BOUND " &
95 SET_LINE_LENGTH
(FILE
, TWO
);
96 SET_PAGE_LENGTH
(FILE
, THREE
);
97 PUT
(FILE
, "DDDDDDD");
102 OPEN
(FILE
, IN_FILE
, LEGAL_FILE_NAME
);
105 NOT_APPLICABLE
("USE_ERROR RAISED ON TEXT OPEN WITH " &
112 IF NOT (END_OF_LINE
(FILE
)) THEN
113 FAILED
("INCORRECT VALUE BEFORE LINE TERMINATOR");
116 IF END_OF_PAGE
(FILE
) THEN
117 FAILED
("PAGE TERMINATOR OUTPUT AT INAPPROPRIATE POINT");
122 IF ITEM1
/= "CCCCCCCCCC" THEN
123 FAILED
("INCORRECT VALUE READ");
126 IF NOT (END_OF_LINE
(FILE
)) THEN
127 FAILED
("INCORRECT VALUE BEFORE LINE TERMINATOR");
130 IF NOT (END_OF_PAGE
(FILE
)) THEN
131 FAILED
("INCORRECT VALUE BEFORE PAGE TERMINATOR");
137 IF ITEM2
/= "DD" THEN
138 FAILED
("INCORRECT VALUE READ");
141 IF NOT (END_OF_LINE
(FILE
)) THEN
142 FAILED
("INCORRECT VALUE BEFORE LINE TERMINATOR");
145 IF END_OF_PAGE
(FILE
) THEN
146 FAILED
("PAGE TERMINATOR OUTPUT AT INAPPROPRIATE POINT");
151 IF ITEM2
/= "DD" THEN
152 FAILED
("INCORRECT VALUE READ");
155 IF NOT (END_OF_LINE
(FILE
)) THEN
156 FAILED
("INCORRECT VALUE BEFORE LINE TERMINATOR");
159 IF NOT (END_OF_PAGE
(FILE
)) THEN
160 FAILED
("INCORRECT VALUE BEFORE PAGE TERMINATOR");