Which is actually shows that tests as methods are not really good idea. Tests are supposed to be documentation but with classic SUnit we have only two ways (classes and methods) to decompose them which is definitely not enough for docs.But ignore it. I am just thinking aloud :)2017-08-16 13:47 GMT+02:00 Stephane Ducasse <stepharo.self@gmail.com>:I often use long selectors for tests :)On Wed, Aug 16, 2017 at 9:49 AM, Guillermo Polito <guillermopolito@gmail.com> wrote:(ByteSymbol allInstances select: [ :e | e size > 50 ]) size"638"(ByteSymbol allInstances select: [ :e | e size > 50 and: [ e beginsWith: 'test' ] ]) size"200"Still 438 non test selectors. Some of them are class creation methods (#subclass:instanceVariables:...) I'm just saying this is a smell, wanted to share some of my catarsis :).GuilleOn Wed, Aug 16, 2017 at 9:35 AM, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com > wrote:like whenBrowserReceiveOpenItShouldI wouldn't be surprise that these are whole sentence acting as specification in unit TestCase,Hi Guile,have you inspect-ed the list?ReturnTheWindowMorph... 2017-08-16 3:51 GMT+02:00 Guillermo Polito <guillermopolito@gmail.com>:#'thisIsAVeryLongSelectorAndIfYoureHereWeHaveOnly49ImagineIH aveToWriteAllThisToArriveTo87T henThisTo100' (ByteSymbol allInstances select: [ :e | e size > 100 ]) size�� => 36(ByteSymbol allInstances select: [ :e | e size between: 50 and: 100 ]) size�� => 653--
������
Guille Polito
Research Engineer
French National Center for Scientific Research - http://www.cnrs.fr
Phone: +33 06 52 70 66 13
--
������
Guille Polito
Research Engineer
French National Center for Scientific Research - http://www.cnrs.fr
Phone: +33 06 52 70 66 13
|
������ | Guille Polito Research Engineer French National Center for Scientific Research - http://www.cnrs.fr Phone: +33 06 52 70 66 13 |