new tasks
This commit is contained in:
parent
2a4d27cea0
commit
80737d5a6a
1194 changed files with 15353 additions and 1 deletions
8
Task/Assertions/Eiffel/assertions-2.e
Normal file
8
Task/Assertions/Eiffel/assertions-2.e
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class TEST
|
||||
feature assert(val: INTEGER) is
|
||||
require
|
||||
val = 42;
|
||||
do
|
||||
print("Thanks for the 42!%N");
|
||||
end
|
||||
end
|
||||
12
Task/Assertions/Eiffel/assertions.e
Normal file
12
Task/Assertions/Eiffel/assertions.e
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class MAIN
|
||||
creation main
|
||||
feature main is
|
||||
local
|
||||
test: TEST;
|
||||
do
|
||||
create test;
|
||||
|
||||
io.read_integer;
|
||||
test.assert(io.last_integer);
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue