[ENH] Assertion

Lex Spoon lex at cc.gatech.edu
Thu May 25 18:50:29 UTC 2000


Stephan Rudlof <sr at evolgo.de> wrote:
> >     self failIf: [a > 0]
> >     self failIf: [a > 0] with: 'illegal value for a'
> > 

Adding an explanation is a great idea.  However, how about using a more
meaningful word than a generic "with" or "that".  For instance:

	self assert: [ x <= 0 ] explanation: 'x should be positive'


-Lex





More information about the Squeak-dev mailing list