Skip to content

Commit

Permalink
cleanup in test output
Browse files Browse the repository at this point in the history
  • Loading branch information
riasc committed Sep 25, 2024
1 parent 6bbca80 commit 28af511
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/IBPTreeTestSuite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ TEST(IBPTreeTestSuite, CreateIBPTree) {
}
auto endInsertion = std::chrono::steady_clock::now();
std::chrono::duration<double> insertionDuration = endInsertion - startInsertion;
std::cout << "Time taken for insertion: " << insertionDuration.count() << " seconds\n\n";
std::cout << "Time taken for insertion: " << insertionDuration.count() << " seconds\n";
std::cout << "#### Searching for data within the tree ####\n";
auto startSearch = std::chrono::steady_clock::now();
for(auto& intvl : intervals) {
Expand All @@ -35,11 +35,9 @@ TEST(IBPTreeTestSuite, CreateIBPTree) {
EXPECT_EQ(searchResult.size(), 1) << "The search result for interval [" << intvl.first.getStart()
<< "," << intvl.first.getEnd() << "] was not correct (count mismatch)";
// cast the data to the correct type
// std::type_index dataTypeName = searchResult[0]->getDataType();
int typed = genogrove::TypeRegistry::cast<int>(searchResult[0]);
EXPECT_EQ(typed, intvl.second) << "The search result for interval ["
<< intvl.first.getStart() << "," << intvl.first.getEnd() << "] was not correct (data mismatch)";

}
auto endSearch = std::chrono::steady_clock::now();
std::chrono::duration<double> searchDuration = endSearch - startSearch;
Expand Down

0 comments on commit 28af511

Please sign in to comment.