|
Re: test for exception: msg#00127lang.smalltalk.squeak.beginners
Lots of digging later... Okay! I think I found the ExceptionEvent I need. It's the appropriately named 'AssertionFailure'. For anyone who might be interested at some future date, the following test works: self should: [ anObject aSetter: anInvalidNumber] raise: AssertionFailure. Cool! -- John On Aug 14, 2007, at 4:02 PM, John Almberg wrote: I have a setter method that tests input for validity using 'assert'. It looks like this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Websites for On-line Collectible Dealers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Identry, LLC John Almberg (631) 546-5079 jalmberg@xxxxxxxxxxx www.identry.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | test for exception, John Almberg |
|---|---|
| Next by Date: | Re: Ubuntu Linux, Blake |
| Previous by Thread: | test for exception, John Almberg |
| Next by Thread: | Remove Window Gradients, Michael Hogsett |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |