Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
20
libs/base/base_tests/message_test.cpp
Normal file
20
libs/base/base_tests/message_test.cpp
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#include "testing/testing.hpp"
|
||||
|
||||
UNIT_TEST(DebugPrint_Char)
|
||||
{
|
||||
char const * s = "Тест";
|
||||
|
||||
char const arr1[] = "Тест";
|
||||
char constexpr arr2[] = "Тест";
|
||||
char arr3[] = "Тест";
|
||||
|
||||
std::string str(s);
|
||||
char * s2 = str.data();
|
||||
|
||||
TEST_EQUAL(s, DebugPrint(s), ());
|
||||
TEST_EQUAL(s, DebugPrint(arr1), ());
|
||||
TEST_EQUAL(s, DebugPrint(arr2), ());
|
||||
TEST_EQUAL(s, DebugPrint(arr3), ());
|
||||
TEST_EQUAL(s, DebugPrint(s2), ());
|
||||
TEST_EQUAL(s, DebugPrint(str), ());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue