From f948c40ed4046720faaedef806b57109081a045f Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Thu, 11 Dec 2025 02:00:06 +0100 Subject: [PATCH] use decklist library --- tests/CMakeLists.txt | 4 ++-- tests/deck_hash_performance_test.cpp | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 769c9b361..6bbbf05d7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,7 +14,7 @@ add_executable(dummy_test dummy_test.cpp) add_executable(expression_test expression_test.cpp) add_executable(test_age_formatting test_age_formatting.cpp) add_executable(password_hash_test password_hash_test.cpp) -add_executable(deck_hash_performance_test ../common/deck_list.cpp deck_hash_performance_test.cpp) +add_executable(deck_hash_performance_test deck_hash_performance_test.cpp) find_package(GTest) @@ -56,7 +56,7 @@ target_link_libraries( password_hash_test libcockatrice_utility Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES} ) target_link_libraries( - deck_hash_performance_test libcockatrice_utility Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES} + deck_hash_performance_test libcockatrice_deck_list libcockatrice_utility Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES} ) add_subdirectory(carddatabase) diff --git a/tests/deck_hash_performance_test.cpp b/tests/deck_hash_performance_test.cpp index 6dd4be21b..154283e8e 100644 --- a/tests/deck_hash_performance_test.cpp +++ b/tests/deck_hash_performance_test.cpp @@ -1,7 +1,6 @@ -#include "../common/deck_list.h" - #include "gtest/gtest.h" #include +#include static constexpr int amount = 1e5; QString repeatDeck;