mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Improve test for constructor consistency
This commit is contained in:
parent
b2f059e188
commit
a826dcacc1
@ -53,10 +53,14 @@ TEST(Exception, constructor) {
|
|||||||
const SQLite::Exception ex1(msg1);
|
const SQLite::Exception ex1(msg1);
|
||||||
const SQLite::Exception ex2(msg2);
|
const SQLite::Exception ex2(msg2);
|
||||||
EXPECT_STREQ(ex1.what(), ex2.what());
|
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 ex1(msg1, 1);
|
||||||
const SQLite::Exception ex2(msg2, 1);
|
const SQLite::Exception ex2(msg2, 1);
|
||||||
EXPECT_STREQ(ex1.what(), ex2.what());
|
EXPECT_STREQ(ex1.what(), ex2.what());
|
||||||
|
EXPECT_EQ(ex1.getErrorCode(), ex2.getErrorCode());
|
||||||
|
EXPECT_EQ(ex1.getExtendedErrorCode(), ex2.getExtendedErrorCode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user