From a826dcacc11148a2d0a8c809418e57c6126f745c Mon Sep 17 00:00:00 2001 From: fekir Date: Sat, 19 Aug 2017 09:19:55 +0200 Subject: [PATCH] Improve test for constructor consistency --- tests/Exception_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Exception_test.cpp b/tests/Exception_test.cpp index 9a71c10..d2c1ef8 100644 --- a/tests/Exception_test.cpp +++ b/tests/Exception_test.cpp @@ -53,10 +53,14 @@ TEST(Exception, constructor) { const SQLite::Exception ex1(msg1); const SQLite::Exception ex2(msg2); EXPECT_STREQ(ex1.what(), ex2.what()); + EXPECT_EQ(ex1.getErrorCode(), ex2.getErrorCode()); + EXPECT_EQ(ex1.getExtendedErrorCode(), ex2.getExtendedErrorCode()); } { const SQLite::Exception ex1(msg1, 1); const SQLite::Exception ex2(msg2, 1); EXPECT_STREQ(ex1.what(), ex2.what()); + EXPECT_EQ(ex1.getErrorCode(), ex2.getErrorCode()); + EXPECT_EQ(ex1.getExtendedErrorCode(), ex2.getExtendedErrorCode()); } }