On Thu, Sep 22, 2005 at 12:07:27PM -0700, Luke Bayes wrote:
> I have to admit - this is definitely a unique request!
>  Does anyone else need this?

It's fairly common when dealing with the approximations of floating
point arithmetic to avoid exact equality comparisions between values.


>  Does JUnit or NUnit include this?

JUnit _only_ provides assertions on float/double equality within a given
epsilon. e.g.,

http://www.junit.org/junit/javadoc/3.8.1/junit/framework/Assert.html#assertEquals(double,%20double,%20double)

http://www.docjar.com/html/api/junit/framework/Assert.java.html#x94

ta,
dave

-- 
http://david.holroyd.me.uk/

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to