Test expectation language (was Re: [squeak-dev] The Inbox: CollectionsTests-dtl.209.mcz)

Colin Putney colin at wiresong.com
Sat Jan 4 00:14:47 UTC 2014


On Fri, Jan 3, 2014 at 3:42 PM, Tobias Pape <Das.Linux at gmx.de> wrote:

> > Would it be blasphemy to have a global or class called It? It should:
> > $a equal: $b.
>
> Strangely, I like it.


Why? "It should a equal b" isn't a coherent sentence.

SUnit doesn't try to make everything into an executable specification
(which is a good thing), but at least "self assert: a equals: b" reads like
fluent Smalltalk.

Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140103/7f2c0b90/attachment.htm


More information about the Squeak-dev mailing list