2015-09-08 23:49:35 +02:00
|
|
|
.. _assertions-ref:
|
|
|
|
|
|
|
|
Assertion reference
|
|
|
|
===================
|
|
|
|
|
|
|
|
This is an exhaustive list of all assertion macros that Criterion provides.
|
|
|
|
|
|
|
|
As each ``assert`` macros have an ``expect`` counterpart with the exact same
|
|
|
|
number of parameters and name suffix, there is no benefit in adding ``expect``
|
|
|
|
macros to this list. Hence only ``assert`` macros are represented here.
|
|
|
|
|
2015-12-07 13:57:22 +01:00
|
|
|
All ``assert`` macros may take an optional ``printf`` format string and
|
|
|
|
parameters.
|
|
|
|
|
2016-02-21 17:10:52 +01:00
|
|
|
Base Assertions
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
.. doxygengroup:: BaseAsserts
|
|
|
|
|
2015-09-08 23:49:35 +02:00
|
|
|
Common Assertions
|
|
|
|
-----------------
|
|
|
|
|
2016-02-21 17:10:52 +01:00
|
|
|
.. doxygengroup:: CommonBinAsserts
|
|
|
|
.. doxygengroup:: CommonUnaryAsserts
|
|
|
|
.. doxygengroup:: FloatAsserts
|
2015-09-08 23:49:35 +02:00
|
|
|
|
|
|
|
String Assertions
|
|
|
|
-----------------
|
|
|
|
|
2016-02-21 17:10:52 +01:00
|
|
|
.. doxygengroup:: StringAsserts
|
2015-09-08 23:49:35 +02:00
|
|
|
|
2016-09-09 16:39:16 -06:00
|
|
|
Wide String Assertions
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
.. doxygengroup:: WideStringAsserts
|
|
|
|
|
2015-09-08 23:49:35 +02:00
|
|
|
Array Assertions
|
|
|
|
-----------------
|
|
|
|
|
2016-02-21 17:10:52 +01:00
|
|
|
.. doxygengroup:: ArrayAsserts
|
|
|
|
.. doxygengroup:: SafeArrCmpAsserts
|
2015-09-08 23:49:35 +02:00
|
|
|
|
2015-09-14 04:16:03 +02:00
|
|
|
Exception Assertions
|
|
|
|
--------------------
|
|
|
|
|
2016-02-21 17:10:52 +01:00
|
|
|
.. doxygengroup:: ExceptionAsserts
|
2015-09-14 04:16:03 +02:00
|
|
|
|
|
|
|
File Assertions
|
|
|
|
---------------
|
|
|
|
|
2016-02-21 17:10:52 +01:00
|
|
|
.. doxygengroup:: FileAsserts
|