new tasks
This commit is contained in:
parent
2a4d27cea0
commit
80737d5a6a
1194 changed files with 15353 additions and 1 deletions
2
Task/Assertions/Smalltalk/assertions-2.st
Normal file
2
Task/Assertions/Smalltalk/assertions-2.st
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
self assert: (... somethingMustEvaluateToTrue.. )
|
||||
self should:[ some code ] raise: someException "ensures that an exception is raised
|
||||
1
Task/Assertions/Smalltalk/assertions-3.st
Normal file
1
Task/Assertions/Smalltalk/assertions-3.st
Normal file
|
|
@ -0,0 +1 @@
|
|||
self assert: (... somethingMustEvaluateToTrue.. ) "implemented in Object"
|
||||
3
Task/Assertions/Smalltalk/assertions.st
Normal file
3
Task/Assertions/Smalltalk/assertions.st
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
foo := 41.
|
||||
...
|
||||
self assert: (foo == 42).
|
||||
Loading…
Add table
Add a link
Reference in a new issue