--- In squeak@yahoogroups.com, "Philippe Marschall" <philippe.marschall@...> wrote:
* TestCase>>should: aBlock notTakeMoreThanMilliseconds: anInteger
Shouldn't that be
- TestCase>>shouldnt: aBlock takeMoreThan: aDuration
milliSeconds would then be sent to anInteger
self shouldnt: [ ... ] takeMoreThan: 5 milliSeconds
Well, the problem is that your suggestion is not portable to other Smalltalk (like VisualAge or GemStone, that are the ones we use...) But yes, I agree that your suggestion is better. I'd like this methods to be part of SUnit, so I guess the people that maintain SUnit should have the last word about this.
Hernan.
Cheers Philippe