[Dune] [#1130] Write Dune-specific assert which ignores -DNDEBUG

Dune flyspray at dune-project.org
Fri Jun 15 12:03:03 CEST 2012


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#1130 - Write Dune-specific assert which ignores -DNDEBUG
User who did this - Christoph GrĂ¼ninger (gruenich)

----------
I would like to have different types of assert command, like in JUnit:
<T>assertEquals(T, T, string)
<T>assertNotEquals(T, T, string)
assertTrue(boolean, string)
assertFalse(boolean, string)

The string is an error message which indicates what happend / give the reason for the test. (e.g. "dimension from template argument should match size of FieldVector")

Maybe test for undefined values (NULL, NaN, inf) and a test whether an exception has been thrown would be nice.
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1130#comment3733

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list