Add a note about when logging macros don't work

This commit is contained in:
David Shepherd 2017-04-07 11:00:53 +01:00 committed by GitHub
parent 250f0ee7fb
commit 1430b3be09

View File

@ -2,6 +2,8 @@
Additional messages can be logged during a test case.
Note that these macros do not log anything unless they are *directly* inside a catch test scope macro (i.e. TEST_CASE, SECTION, GIVEN/WHEN/THEN/...). In particular they cannot be used inside loops or ```if``` statements.
## Streaming macros
All these macros allow heterogenous sequences of values to be streaming using the insertion operator (```<<```) in the same way that std::ostream, std::cout, etc support it.