RosettaCodeData/Task/Assertions/Smalltalk/assertions-2.st

3 lines
134 B
Smalltalk

self assert: (... somethingMustEvaluateToTrue.. )
self should:[ some code ] raise: someException "ensures that an exception is raised