10 #include <gtest/gtest.h>
15 TEST(TestLogLevel, IstreamParsingOk) {
20 EXPECT_EQ(ll.value, log4cplus::INFO_LOG_LEVEL) << ss.str();
23 TEST(TestLogLevel, IstreamParsingFails) {
27 EXPECT_THROW(ss >> ll, std::invalid_argument);
30 TEST(TestLogLevel, OstreamFormatting) {
34 EXPECT_EQ(ss.str(),
"INFO");
37 TEST(TestTrim, TrimsRight) {
41 EXPECT_EQ(ss.str(),
" hello");
44 TEST(TestTrim, TrimsNothing) {
48 EXPECT_EQ(ss.str(),
"hello");