summaryrefslogtreecommitdiff
path: root/slicer/db/testPatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'slicer/db/testPatch.cpp')
-rw-r--r--slicer/db/testPatch.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/slicer/db/testPatch.cpp b/slicer/db/testPatch.cpp
index bb7979b..333b806 100644
--- a/slicer/db/testPatch.cpp
+++ b/slicer/db/testPatch.cpp
@@ -14,6 +14,7 @@
BOOST_TEST_DONT_PRINT_LOG_VALUE(TestModule::DateTime);
BOOST_TEST_DONT_PRINT_LOG_VALUE(TestModule::IsoDate);
BOOST_TEST_DONT_PRINT_LOG_VALUE(TestDatabase::Timespan);
+BOOST_TEST_DONT_PRINT_LOG_VALUE(DB::PrimaryKey);
// LCOV_EXCL_STOP
class StandardMockDatabase : public PQ::Mock {
@@ -43,5 +44,11 @@ BOOST_AUTO_TEST_CASE( insert_builtins )
auto cmd = db->select("SELECT COUNT(*) FROM builtins");
auto c = Slicer::DeserializeAny<Slicer::SqlSelectDeserializer, int>(*cmd);
BOOST_REQUIRE_EQUAL(2, c);
+ BOOST_REQUIRE_EQUAL(2, tp.pk.size());
+ DB::PrimaryKey pk = {"mint", "mlong"};
+ BOOST_REQUIRE_EQUAL(pk, tp.pk);
+ BOOST_REQUIRE_EQUAL(8, tp.cols.size());
+ DB::ColumnNames cols = {"mbool", "mbyte", "mdouble", "mfloat", "mint", "mlong", "mshort", "mstring"};
+ BOOST_REQUIRE_EQUAL(cols, tp.cols);
}