Oct. 29, 2009
12:21 p.m.
2009/10/29 Dennis Schetinin <chaetal@gmail.com>:
For me it's not clear at all. But this is much more obvious:
     stack := self resultOf: [self shouldBeEmpty].
So why to use a block then? And stop, why to use "resultOf:"???
And by "declarative" I meant the way you specify dependencies between your tests. If it was done your way, test would be performed twice.
Why?
Don't you expect the block to be evaluated?
If you use symbol, you don't have to do it (haven't seen the library yet, just guessing :).
Don't have to do what?
Don't have to execute method shouldBeEmpty twice.