The failing test you exposed sounds like the difference is used to test equality between two FloatArray. If that is the case, you could replace isZero by isAllZero. I did not run an image nor look at the code, alors je suis peut être à côté de la plaque...
2009/6/13 Stéphane Ducasse <[email protected]>: > I hate this coercion. > > Nicolas I do not understand your answer. > For me a collection isZero means nothing. > > Stef > > On Jun 13, 2009, at 5:04 PM, Michael Roberts wrote: > >> I haven't yet looked at the cs on the mantis report, but why do we >> expect to be able to coerce a collection into a number? (non an >> obvious behaviour for collections) >> >> thanks, >> Mike >> >> On Sat, Jun 13, 2009 at 3:48 PM, Nicolas >> Cellier<[email protected]> wrote: >>> (a - b) allSatisfy: [:each | each isZero] ? >>> >>> 2009/6/13 Stéphane Ducasse <[email protected]>: >>>> isZero on collection does not make sense so it was deprecated now >>>> >>>> some tests like are breaking >>>> >>>> 3.0 / (FloatArray with: 2.0) = (FloatArray with: 1.5) >>>> >>>> so ? >>>> Stef >>>> >>>> _______________________________________________ >>>> 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 >>> >> >> _______________________________________________ >> 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 > _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
