From 2596be5ef211627cb18735006931522cf5907794 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 29 Apr 2023 02:58:02 +0800 Subject: [PATCH] test: fix core next cases test --- test/core/core.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/core.cc b/test/core/core.cc index f7c7016..6a15849 100644 --- a/test/core/core.cc +++ b/test/core/core.cc @@ -4,9 +4,9 @@ #include "all_cases.h" #include "gtest/gtest.h" -using klotski::Group; using klotski::RawCode; using klotski::AllCases; +using klotski::GroupType; using klotski::TYPE_ID_LIMIT; @@ -14,7 +14,7 @@ TEST(Core, next_cases) { auto test = [](uint32_t type_id) { auto raw_codes = std::unordered_set(); raw_codes.reserve(klotski::ALL_CASES_SIZE_SUM); - for (auto &&common_code: Group::all_cases(type_id)) { // load all cases in a type + for (auto &&common_code: GroupType(type_id).cases()) { // load all cases in a type raw_codes.emplace(common_code.to_raw_code().unwrap()); }