static void test_21() { // 1. Setup pantheios::be::test::reset(); // 2. Create test data std::string msgEl1(256, '~'); std::string msgEl2(4096, '#'); PANTHEIOS_TRACE_INFORMATIONAL(msgEl1, msgEl2); int LINE = __LINE__; // 3. Verification pantheios::be::test::Results results = pantheios::be::test::results(); XTESTS_TEST(1 == results.size()); XTESTS_TEST(pantheios::informational == results[0].severity); PANTHEIOS_TEST_STRING_OBJECTS_EQUAL(fileline_stmt_((msgEl1 + msgEl2).c_str(), LINE), results[0].statement); }
static void test_21() { // 1. Setup pantheios::be::test::reset(); // 2. Create test data string_t msgEl1(256, '~'); string_t msgEl2(4096, '#'); pantheios::log(pantheios::informational, msgEl1, msgEl2); // 3. Verification pantheios::be::test::Results results = pantheios::be::test::results(); XTESTS_TEST_INTEGER_EQUAL(1u, results.size()); XTESTS_TEST_STRING_EQUAL(msgEl1 + msgEl2, results[0].statement); XTESTS_TEST(pantheios::informational == results[0].severity); }