function Sqrt (Arg : Float) return Float;
pragma Test_Case (Name => "Test 1",
Mode => Nominal,
- Requires => Arg < 10000,
- Ensures => Sqrt'Result < 10);
+ Requires => Arg < 10000.0,
+ Ensures => Sqrt'Result < 10.0);
...
end Math_Functions;
@copying
@quotation
-GNAT Reference Manual , Nov 20, 2020
+GNAT Reference Manual , Dec 11, 2020
AdaCore
function Sqrt (Arg : Float) return Float;
pragma Test_Case (Name => "Test 1",
Mode => Nominal,
- Requires => Arg < 10000,
- Ensures => Sqrt'Result < 10);
+ Requires => Arg < 10000.0,
+ Ensures => Sqrt'Result < 10.0);
...
end Math_Functions;
@end example