Skip to content

Commit 4300c42

Browse files
committed
add test for uknown
1 parent 8c2f5d2 commit 4300c42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/error_tests.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ TEST(ErrorTests, StringReprTest) {
9797
EXPECT_EQ(std::to_string(error.code), "UNSUPPORTED_PROTOCOL");
9898
}
9999

100+
TEST(ErrorTests, StringReprUnknownTest) {
101+
Error error;
102+
error.code = ErrorCode::UNKNOWN_ERROR;
103+
EXPECT_EQ(std::to_string(error.code), "UNKNOWN_ERROR");
104+
}
105+
100106

101107
int main(int argc, char** argv) {
102108
::testing::InitGoogleTest(&argc, argv);

0 commit comments

Comments
 (0)