2016-02-17 22:56:23 +01:00
|
|
|
#include <criterion/criterion.h>
|
|
|
|
#include <criterion/logging.h>
|
|
|
|
|
|
|
|
using criterion::logging::info;
|
|
|
|
using criterion::logging::warn;
|
|
|
|
using criterion::logging::error;
|
|
|
|
|
|
|
|
Test(logging, stream) {
|
|
|
|
info << "This is an informational message. They are not displayed "
|
2016-09-05 21:32:57 +02:00
|
|
|
"by default."
|
2016-02-17 22:56:23 +01:00
|
|
|
<< std::endl;
|
|
|
|
warn << "This is a warning. They indicate some possible malfunction "
|
2016-09-05 21:32:57 +02:00
|
|
|
"or misconfiguration in the test."
|
2016-02-17 22:56:23 +01:00
|
|
|
<< std::endl;
|
|
|
|
error << "This is an error. They indicate serious problems and "
|
2016-09-05 21:32:57 +02:00
|
|
|
"are usually shown before the test is aborted."
|
2016-02-17 22:56:23 +01:00
|
|
|
<< std::endl;
|
|
|
|
}
|