TEST(GTestError, TestToString) { String::CPtr foo = String::create("foo"); Error::CPtr e = Error::create(Error::ANY, foo); ASSERT_TRUE(e->toString()->equals(foo)); }
TEST(GTestError, TestToString) { String::CPtr strEOF = String::create("end of file"); Error::CPtr e = Error::create(Error::_EOF); ASSERT_TRUE(e->toString()->equals(strEOF)); }