[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I test functions that return float/double?


Junit has:

public static void assertEquals(double expected,
                                double actual,
                                double delta)

http://junit.org/apidocs/org/junit/Assert.html#assertEquals%28double,%20double,%20double%29

I checked :
https://api.cmocka.org/group__cmocka__asserts.html

But I did not find anything comparable. Is there a trick or did I miss something?

Regards,
Lars 



Follow-Ups:
Re: How do I test functions that return float/double?Andreas Schneider <asn@xxxxxxxxxxxxxx>