advances in defining new sections for macros
This commit is contained in:
parent
c212fc171f
commit
602de5287e
@ -87,31 +87,30 @@
|
||||
[def __BOOST_LEVEL_LE__ [link ref_BOOST_level_LE `BOOST_<level>_LE`]]
|
||||
[def __BOOST_LEVEL_LT__ [link ref_BOOST_level_LT `BOOST_<level>_LT`]]
|
||||
|
||||
[def __BOOST_LEVEL_NO_THROW__ [link ref_BOOST_level_NO_THROW `BOOST_<level>_NO_THROW`]]
|
||||
[def __BOOST_LEVEL_THROW__ [link ref_BOOST_level_THROW `BOOST_<level>_THROW`]]
|
||||
[def __BOOST_LEVEL_EXCEPTION__ [link ref_BOOST_level_EXCEPTION `BOOST_<level>_EXCEPTION`]]
|
||||
[def __BOOST_LEVEL_NO_THROW__ [link ref_BOOST_level_NO_THROW `BOOST_<level>_NO_THROW`]]
|
||||
[def __BOOST_LEVEL_THROW__ [link ref_BOOST_level_THROW `BOOST_<level>_THROW`]]
|
||||
[def __BOOST_LEVEL_EXCEPTION__ [link boost_test.testing_tools.testing_tool_ref.assertion_boost_level_exception `BOOST_<level>_EXCEPTION`]]
|
||||
|
||||
[def __BOOST_LEVEL_BITWISE_EQUAL__ [link boost_test.testing_tools.testing_tool_ref.assertion_boost_level_bitwise_eq `BOOST_<level>_BITWISE_EQUAL`]]
|
||||
[def __BOOST_ERROR__ [link ref_BOOST_ERROR `BOOST_ERROR`]]
|
||||
[def __BOOST_FAIL__ [link ref_BOOST_FAIL `BOOST_FAIL`]]
|
||||
[def __BOOST_IS_DEFINED__ [link ref_BOOST_IS_DEFINED `BOOST_IS_DEFINED`]]
|
||||
[def __BOOST_LEVEL_BITWISE_EQUAL__ [link boost_test.testing_tools.testing_tool_ref.assertion_boost_level_bitwise_eq `BOOST_<level>_BITWISE_EQUAL`]]
|
||||
[def __BOOST_ERROR__ [link ref_BOOST_ERROR `BOOST_ERROR`]]
|
||||
[def __BOOST_FAIL__ [link ref_BOOST_FAIL `BOOST_FAIL`]]
|
||||
[def __BOOST_IS_DEFINED__ [link ref_BOOST_IS_DEFINED `BOOST_IS_DEFINED`]]
|
||||
|
||||
[def __BOOST_CHECK__ [link ref_BOOST_level `BOOST_CHECK`]]
|
||||
[def __BOOST_REQUIRE__ [link ref_BOOST_level `BOOST_REQUIRE`]]
|
||||
[def __BOOST_CHECK_MESSAGE__ `BOOST_CHECK_MESSAGE`]
|
||||
[def __BOOST_CHECK__ [link ref_BOOST_level `BOOST_CHECK`]]
|
||||
[def __BOOST_REQUIRE__ [link ref_BOOST_level `BOOST_REQUIRE`]]
|
||||
[def __BOOST_CHECK_MESSAGE__ [link ref_BOOST_level_MESSAGE `BOOST_CHECK_MESSAGE`]]
|
||||
|
||||
[def __BOOST_WARN_EQUAL__ [link ref_BOOST_level_EQUAL `BOOST_WARN_EQUAL`]]
|
||||
[def __BOOST_CHECK_EQUAL__ [link ref_BOOST_level_EQUAL `BOOST_CHECK_EQUAL`]]
|
||||
[def __BOOST_REQUIRE_EQUAL__ [link ref_BOOST_level_EQUAL `BOOST_REQUIRE_EQUAL`]]
|
||||
[def __BOOST_WARN_EQUAL__ [link boost_test.testing_tools.testing_tool_ref.assertion_boost_level_eq `BOOST_WARN_EQUAL`]]
|
||||
[def __BOOST_CHECK_EQUAL__ [link boost_test.testing_tools.testing_tool_ref.assertion_boost_level_eq `BOOST_CHECK_EQUAL`]]
|
||||
[def __BOOST_REQUIRE_EQUAL__ [link boost_test.testing_tools.testing_tool_ref.assertion_boost_level_eq `BOOST_REQUIRE_EQUAL`]]
|
||||
|
||||
[def __BOOST_CHECK_PREDICATE__ __BOOST_LEVEL_PREDICATE__]
|
||||
|
||||
[/ Assertions / floating point]
|
||||
[def __BOOST_LEVEL_SMALL__ [link ref_BOOST_level_SMALL `BOOST_<level>_SMALL`]]
|
||||
[def __BOOST_CHECK_SMALL__ __BOOST_LEVEL_SMALL__]
|
||||
[def __BOOST_LEVEL_CLOSE__ [link ref_BOOST_level_CLOSE `BOOST_<level>_CLOSE`]]
|
||||
[def __BOOST_CHECK_CLOSE__ __BOOST_LEVEL_CLOSE__]
|
||||
[def __BOOST_LEVEL_CLOSE_FRACTION__ [link ref_BOOST_level_CLOSE_FRACTION `BOOST_<level>_CLOSE_FRACTION`]]
|
||||
[def __BOOST_LEVEL_SMALL__ [link ref_BOOST_level_SMALL `BOOST_<level>_SMALL`]]
|
||||
[def __BOOST_CHECK_SMALL__ __BOOST_LEVEL_SMALL__]
|
||||
[def __BOOST_LEVEL_CLOSE__ [link boost_test.testing_tools.testing_tool_ref.assertion_boost_level_close `BOOST_<level>_CLOSE`]]
|
||||
[def __BOOST_CHECK_CLOSE__ __BOOST_LEVEL_CLOSE__]
|
||||
[def __BOOST_LEVEL_CLOSE_FRACTION__ [link boost_test.testing_tools.testing_tool_ref.assertion_boost_level_close_fraction `BOOST_<level>_CLOSE_FRACTION`]]
|
||||
|
||||
[/ Tests cases]
|
||||
[def __BOOST_AUTO_TEST_CASE__ [link ref_BOOST_AUTO_TEST_CASE `BOOST_AUTO_TEST_CASE`]]
|
||||
|
@ -7,13 +7,13 @@ report on failure. To satisfy this need testing tools implement custom predicate
|
||||
predicate support implemented by testing tools toolbox: with and without custom error message generation.
|
||||
|
||||
|
||||
The first layer is supported by __BOOST_CHECK_PREDICATE__ family of testing tools. You can use it to check any custom
|
||||
The first layer is supported by __BOOST_LEVEL_PREDICATE__ family of testing tools. You can use it to check any custom
|
||||
predicate that reports the result as boolean value. The values of the predicate arguments are reported by the tool
|
||||
automatically in case of failure.
|
||||
|
||||
[import ../examples/example30.cpp]
|
||||
[import ../examples/example30.output]
|
||||
[table:id_example30 Custom predicate support using __BOOST_CHECK_PREDICATE__
|
||||
[table:id_example30 Custom predicate support using __BOOST_LEVEL_PREDICATE__
|
||||
[
|
||||
[Code]
|
||||
[Output]
|
||||
|
@ -47,6 +47,27 @@ ways to detect and report errors. For list of all supplied testing tools and usa
|
||||
[Element-wise equality test of two collections.]
|
||||
]
|
||||
|
||||
[/ ###############################################################################################]
|
||||
[
|
||||
[__BOOST_LEVEL_CLOSE__]
|
||||
[Floating point comparison using a percentage of deviation.]
|
||||
]
|
||||
|
||||
[/ ###############################################################################################]
|
||||
[
|
||||
[__BOOST_LEVEL_CLOSE_FRACTION__]
|
||||
[Floating point comparison using the fraction of the compared operands.]
|
||||
]
|
||||
|
||||
[/ ###############################################################################################]
|
||||
[
|
||||
[__BOOST_LEVEL_EXCEPTION__]
|
||||
[Exception detection and validation check.]
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
||||
|
||||
@ -88,7 +109,7 @@ See also:
|
||||
|
||||
|
||||
[/ ###############################################################################################]
|
||||
[#ref_BOOST_level_BITWISE_EQUAL][section:assertion_boost_level_bitwise_eq `BOOST_<level>_BITWISE_EQUAL`]
|
||||
[section:assertion_boost_level_bitwise_eq `BOOST_<level>_BITWISE_EQUAL`]
|
||||
|
||||
|
||||
``
|
||||
@ -123,7 +144,7 @@ See also:
|
||||
[endsect]
|
||||
|
||||
[/ ###############################################################################################]
|
||||
[#ref_BOOST_level_EQUAL][section:assertion_boost_level_eq `BOOST_<level>_EQUAL`]
|
||||
[section:assertion_boost_level_eq `BOOST_<level>_EQUAL`]
|
||||
|
||||
``
|
||||
BOOST_WARN_EQUAL(left, right);
|
||||
@ -161,7 +182,7 @@ See also:
|
||||
[endsect]
|
||||
|
||||
[/ ###############################################################################################]
|
||||
[#ref_BOOST_level_EQUAL_COLLECTIONS][section:assertion_boost_level_eq_collections `BOOST_<level>_EQUAL_COLLECTIONS`]
|
||||
[section:assertion_boost_level_eq_collections `BOOST_<level>_EQUAL_COLLECTIONS`]
|
||||
|
||||
``
|
||||
BOOST_WARN_EQUAL_COLLECTIONS(left_begin, left_end, right_begin, right_end);
|
||||
@ -197,8 +218,8 @@ See also:
|
||||
|
||||
|
||||
|
||||
|
||||
[#ref_BOOST_level_CLOSE][h3 `BOOST_<level>_CLOSE`]
|
||||
[/ ###############################################################################################]
|
||||
[section:assertion_boost_level_close `BOOST_<level>_CLOSE`]
|
||||
|
||||
|
||||
``
|
||||
@ -258,8 +279,10 @@ See also:
|
||||
* __BOOST_LEVEL_EQUAL__
|
||||
* [link boost_test.testing_tools.testing_floating_points Floating point comparison algorithms]
|
||||
|
||||
[endsect]
|
||||
|
||||
[#ref_BOOST_level_CLOSE_FRACTION][h3 `BOOST_<level>_CLOSE_FRACTION`]
|
||||
[/ ###############################################################################################]
|
||||
[section:assertion_boost_level_close_fraction `BOOST_<level>_CLOSE_FRACTION`]
|
||||
|
||||
``
|
||||
BOOST_WARN_CLOSE_FRACTION(left, right, tolerance);
|
||||
@ -302,10 +325,11 @@ See also:
|
||||
* [link boost_test.testing_tools.testing_floating_points Floating point comparison algorithms]
|
||||
|
||||
|
||||
[endsect]
|
||||
|
||||
|
||||
|
||||
[#ref_BOOST_level_EXCEPTION][h3 `BOOST_<level>_EXCEPTION`]
|
||||
[/ ###############################################################################################]
|
||||
[section:assertion_boost_level_exception `BOOST_<level>_EXCEPTION`]
|
||||
|
||||
``
|
||||
BOOST_WARN_EXCEPTION(expression, exception, predicate);
|
||||
@ -337,7 +361,14 @@ See also:
|
||||
|
||||
* __BOOST_LEVEL_THROW__
|
||||
|
||||
[endsect]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[/ ###############################################################################################]
|
||||
[#ref_BOOST_level_GE][h3 `BOOST_<level>_GE`]
|
||||
|
||||
``
|
||||
|
Loading…
Reference in New Issue
Block a user