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 PUT RAISES MODE_ERROR FOR FILES OF MODE
29 -- APPLICABILITY CRITERIA:
30 -- THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH SUPPORT
35 -- RJW 11/04/86 REVISED TEST TO OUTPUT A NOT_APPLICABLE
36 -- RESULT WHEN FILES ARE NOT SUPPORTED.
37 -- JLH 09/10/87 REMOVED DEPENDENCE ON RESET, REMOVED UNNECESSARY
38 -- CODE, AND CORRECTED EXCEPTION HANDLING.
40 WITH REPORT
; USE REPORT
;
41 WITH TEXT_IO
; USE TEXT_IO
;
47 TEST
("CE3706D", "CHECK THAT INTEGER_IO PUT RAISES MODE_ERROR " &
48 "FOR FILES OF MODE IN_FILE");
52 TYPE INT
IS NEW INTEGER RANGE 1 .. 30;
53 PACKAGE IIO
IS NEW INTEGER_IO
(INT
);
55 INCOMPLETE
: EXCEPTION;
59 PUT
(STANDARD_INPUT
, 26);
60 FAILED
("MODE_ERROR NOT RAISED - STANDARD_INPUT");
65 FAILED
("WRONG EXCEPTION RAISED - STANDARD_INPUT");
69 PUT
(CURRENT_INPUT
, 26);
70 FAILED
("MODE_ERROR NOT RAISED - CURRENT_INPUT");
75 FAILED
("WRONG EXCEPTION RAISED - CURRENT_INPUT");
79 CREATE
(FT
, OUT_FILE
, LEGAL_FILE_NAME
);
82 NOT_APPLICABLE
("USE_ERROR RAISED ON TEXT CREATE " &
83 "WITH OUT_FILE MODE");
86 NOT_APPLICABLE
("NAME_ERROR RAISED ON TEXT " &
87 "CREATE WITH OUT_FILE MODE");
95 OPEN
(FT
, IN_FILE
, LEGAL_FILE_NAME
);
98 NOT_APPLICABLE
("USE_ERROR RAISED ON TEXT OPEN " &
105 FAILED
("MODE_ERROR NOT RAISED - FILE");
110 FAILED
("WRONG EXCEPTION RAISED - FILE");