3 with Ada
.Text_IO
; use Ada
.Text_IO
;
5 procedure test_fixed_io
is
6 type FX
is delta 0.0001 range -3.0 .. 250.0;
7 for FX
'Small use 0.0001;
8 package FXIO
is new Fixed_IO
(FX
);
10 ST
: String (1 .. 11) := (others => ' ');
11 ST2
: String (1 .. 12) := (others => ' ');
13 N
: constant FX
:= -2.345;
17 Put_Line
("*ERROR* Test1: Exception Layout_Error was not raised");
18 Put_Line
("ST = """ & ST
& '"');
23 Put_Line
("Test1: Unexpected exception");
30 Put_Line
("*ERROR* Test2: Exception Layout_Error was raised");
32 Put_Line
("Test2: Unexpected exception");