Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
1
Task/Assertions/Ada/assertions-1.ada
Normal file
1
Task/Assertions/Ada/assertions-1.ada
Normal file
|
|
@ -0,0 +1 @@
|
|||
pragma Assert (A = 42, "Oops!");
|
||||
3
Task/Assertions/Ada/assertions-2.ada
Normal file
3
Task/Assertions/Ada/assertions-2.ada
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
with Ada.Assertions; use Ada.Assertions;
|
||||
...
|
||||
Assert (A = 42, "Oops!");
|
||||
10
Task/Assertions/Ada/assertions-3.ada
Normal file
10
Task/Assertions/Ada/assertions-3.ada
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
procedure Find_First
|
||||
(List : in Array_Type;
|
||||
Value : in Integer;
|
||||
Found : out Boolean;
|
||||
Position : out Positive) with
|
||||
Depends => ((Found, Position) => (List, Value)),
|
||||
Pre => (List'Length > 0),
|
||||
Post =>
|
||||
(if Found then Position in List'Range and then List (Position) = Value
|
||||
else Position = List'Last);
|
||||
Loading…
Add table
Add a link
Reference in a new issue