Oct. 29, 2009
12:04 p.m.
2009/10/29 George Herolyants <george.herolyants@gmail.com>
2009/10/29 Dennis Schetinin <chaetal@gmail.com>:
Using symbols (i.e. "almost" constants) instead of explicitly telling what is happenning (sending a message) is more clean?! :) Ok then... (Not sure what you mean by "declarative" here)
The message "given:" tells that to you.
For me it's not clear at all. But this is much more obvious: stack := self resultOf: [self shouldBeEmpty]. 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?
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? -- Dennis Schetinin