Use comma over << operator for all unit test logging

The comma operator should be preferred now according to doctest.

Moved macro aliases from `ClassDB` tests to `test_macros.h`, because those
are also used in `TextServer` tests.
This commit is contained in:
Andrii Doroshenko (Xrayez)
2021-01-08 14:15:43 +02:00
parent b72ad9d97b
commit faab6ff97a
5 changed files with 53 additions and 55 deletions

View File

@ -179,10 +179,8 @@ TEST_SUITE("Validate tests") {
color_arr.push_back(Color(2, 2, 2));
INFO(color_arr);
INFO("doctest insertion operator << "
<< var << " " << vec2 << " " << rect2 << " " << color);
CHECK(true); // So all above prints.
// doctest string concatenation.
CHECK_MESSAGE(true, var, " ", vec2, " ", rect2, " ", color);
}
}