From ca3d975bfc09afc6d0881fe5edf192945f821af6 Mon Sep 17 00:00:00 2001 From: Thomas Colthurst Date: Fri, 4 Oct 2024 16:14:43 +0000 Subject: [PATCH] Add another test --- cxx/pclean/pclean_lib_test.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cxx/pclean/pclean_lib_test.cc b/cxx/pclean/pclean_lib_test.cc index 7186786..ea8acdf 100644 --- a/cxx/pclean/pclean_lib_test.cc +++ b/cxx/pclean/pclean_lib_test.cc @@ -239,4 +239,12 @@ observe BOOST_TEST(enc3.second["School"][3] == "School:3"); BOOST_TEST(enc3.second["School"][4] == "School:4"); BOOST_TEST(enc3.second["School"][5] == "School:5"); + + // Test that we got all the entities. + for (const auto& [domain, crp] : gendb.domain_crps) { + for (int i = 0; i <= crp.max_table(); ++i) { + BOOST_TEST(enc3.second[domain].contains(i)); + } + } + }