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 INTEGER_IO GET READS AT MOST WIDTH CHARACTERS
27 -- OR UP TO THE NEXT TERMINATOR; INCLUDING LEADING BLANKS
28 -- AND HORIZONTAL TABULATION CHARACTERS, WHEN WIDTH IS
31 -- CHECK THAT INPUT TERMINATES WHEN A LINE TERMINATOR IS
32 -- ENCOUNTERED AND THAT DATA_ERROR IS RAISED IF THE DATA
35 -- APPLICABILITY CRITERIA:
37 -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH
38 -- SUPPORT TEXT FILES.
44 -- JBG 02/22/84 CHANGED TO .ADA TEST
45 -- RJW 11/04/86 REVISED TEST TO OUTPUT A NON_APPLICABLE
46 -- RESULT WHEN FILES ARE NOT SUPPORTED.
47 -- DWC 09/09/87 ADDED CASES FOR TABS, REMOVED UNNECESSARY
48 -- CODE, AND CHECKED FOR USE_ERROR ON DELETE.
50 WITH REPORT
; USE REPORT
;
51 WITH TEXT_IO
; USE TEXT_IO
;
54 INCOMPLETE
: EXCEPTION;
58 TEST
("CE3704D", "CHECK THAT INTEGER_IO GET READS AT MOST " &
59 "WIDTH CHARACTERS OR UP TO THE NEXT " &
60 "TERMINATOR; INCLUDING LEADING BLANKS AND " &
61 "HORIZONTAL TABULATION CHARACTERS, WHEN WIDTH " &
67 PACKAGE IIO
IS NEW INTEGER_IO
(INTEGER);
71 -- CREATE AND INITIALIZE FILE
74 CREATE
(FT
, OUT_FILE
, LEGAL_FILE_NAME
);
77 NOT_APPLICABLE
("USE_ERROR RAISED; TEXT CREATE " &
78 "WITH OUT_FILE MODE");
81 NOT_APPLICABLE
("NAME_ERROR RAISED; TEXT CREATE " &
82 "WITH OUT_FILE MODE");
92 PUT
(FT
, ASCII
.HT
& "9");
98 OPEN
(FT
, IN_FILE
, LEGAL_FILE_NAME
);
101 NOT_APPLICABLE
("USE_ERROR RAISED; TEXT OPEN " &
102 "WITH IN_FILE MODE");
109 IF X
/= IDENT_INT
(123) THEN
110 FAILED
("WIDTH CHARACTERS NOT READ - 1");
114 FAILED
("DATA_ERROR NOT RAISED - 1");
119 FAILED
("WRONG EXCEPTION RAISED -1");
123 IF X
/= IDENT_INT
(-5678) THEN
124 FAILED
("GET WITH WIDTH " &
129 FAILED
("DATA_ERROR NOT RAISED - 2");
134 FAILED
("WRONG EXCEPTION RAISED - 2");
139 FAILED
("DATA_ERROR NOT RAISED - 3");
144 FAILED
("WRONG EXCEPTION RAISED - 3");
148 IF X
/= IDENT_INT
(9) THEN
149 FAILED
("GET WITH WIDTH " &