yes expect: seems better. Stef On Dec 29, 2009, at 7:21 AM, Julian Fitzell wrote:
On Mon, Dec 28, 2009 at 2:19 PM, Adrian Kuhn <akuhn@iam.unibe.ch> wrote:
For example, when your test case depends on the availability of a certain database you can write
testBlob self assumeThat: Database default = DatabaseWithBlobs. ...
Can I suggest simply #assume: ? The colon kind of has the same meaning as "that" so it ends up redundant (would be the same with existing methods: #assert(That): #deny(That):).
Then, having said that, #assume: sounds a bit like the test should assume the statement is true and then carry on running with that assumption. Maybe #expect: would be more descriptive? Or #precondition: ? Not sure...
Julian
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project