Hi!
In one of my test, I want to check the equality of an array of floats.
The following goes yellow:
self assert: (service outgoingLinks collect: #bandwidth) asArray = #(0.876846926482685 14.7478812578828).
But this one goes green:
self assert: (service outgoingLinks collect: #bandwidth) asArray printString = '#(0.876846926482685 14.7478812578828)' .
Any idea how I can avoid a conversion to strings?
In JUnit, there is assertEquals(double, double, delta). Where delta is an approximation.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project