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

3 lines
134 B
Smalltalk
Raw Permalink Normal View History

2013-04-09 00:46:50 -07:00
self assert: (... somethingMustEvaluateToTrue.. )
self should:[ some code ] raise: someException "ensures that an exception is raised