On Mar 31, 2010, at 5:38 PM, Hilaire Fernandes wrote: > I wrote two tests on the ArrayTest collection to test #sorted and #sorted: > #sorted broke, it is easy to fix. > > I guess we need to write these tests for the whole CollectionTest hierarchy. > I noted there is a CollectionRootTest using trait, however when looking at > the asSortedCollection tests, it is reapeatly written for almost each classes > of the hierarchy, and not in the CollectionRootTest using inheritance > mechanism. > Any reason for that?
Hilaire you should read the paper on traits. Probably sorted does not make sense on all collection so we define a trait and apply it when needed. Traits are simple, just have a look. I did a presentation at esug about them. Stef > > Hilaire > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
