Browse Source

update: headers of codec tester

master
Dnomd343 4 months ago
parent
commit
c464a9d29f
  1. 12
      src/core_test/CMakeLists.txt
  2. 12
      src/core_test/codec/common_code.cc
  3. 11
      src/core_test/codec/mirror.cc
  4. 13
      src/core_test/codec/raw_code.cc
  5. 3
      src/core_test/codec/sample.h
  6. 10
      src/core_test/codec/short_code.cc

12
src/core_test/CMakeLists.txt

@ -8,14 +8,10 @@ set(KLSK_TEST_DEPS klotski_c klotski_core
# ------------------------------------------------------------------------------------ # # ------------------------------------------------------------------------------------ #
include_directories(utility) include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# TODO: just pass compile for now # TODO: remove it
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../core/utils) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/utility)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../core/raw_code)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../core/all_cases)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../core/short_code)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../core/common_code)
# ------------------------------------------------------------------------------------ # # ------------------------------------------------------------------------------------ #

12
src/core_test/codec/common_code.cc

@ -1,12 +1,12 @@
#include <algorithm> #include <algorithm>
#include <gtest/gtest.h>
#include <BS_thread_pool.hpp>
#include "sample.h" #include "sample.h"
#include "raw_code.h" #include "raw_code/raw_code.h"
#include "all_cases.h" #include "all_cases/all_cases.h"
#include "short_code.h" #include "short_code/short_code.h"
#include "common_code.h" #include "common_code/common_code.h"
#include "gtest/gtest.h"
#include "BS_thread_pool.hpp"
using klotski::codec::RawCode; using klotski::codec::RawCode;
using klotski::codec::ShortCode; using klotski::codec::ShortCode;

11
src/core_test/codec/mirror.cc

@ -1,8 +1,9 @@
#include "raw_code.h" #include <gtest/gtest.h>
#include "all_cases.h" #include <BS_thread_pool.hpp>
#include "common_code.h"
#include "gtest/gtest.h" #include "raw_code/raw_code.h"
#include "BS_thread_pool.hpp" #include "all_cases/all_cases.h"
#include "common_code/common_code.h"
using klotski::codec::RawCode; using klotski::codec::RawCode;
using klotski::cases::AllCases; using klotski::cases::AllCases;

13
src/core_test/codec/raw_code.cc

@ -1,10 +1,11 @@
#include "common.h" #include <gtest/gtest.h>
#include <BS_thread_pool.hpp>
#include "sample.h" #include "sample.h"
#include "raw_code.h" #include "utils/common.h"
#include "all_cases.h" #include "raw_code/raw_code.h"
#include "common_code.h" #include "all_cases/all_cases.h"
#include "gtest/gtest.h" #include "common_code/common_code.h"
#include "BS_thread_pool.hpp"
using klotski::range_reverse; using klotski::range_reverse;

3
src/core_test/codec/sample.h

@ -2,7 +2,8 @@
#include <string> #include <string>
#include <cstdint> #include <cstdint>
#include "all_cases.h"
#include "all_cases/all_cases.h"
// ----------------------------------------------------------------------------------------- // // ----------------------------------------------------------------------------------------- //

10
src/core_test/codec/short_code.cc

@ -1,12 +1,12 @@
#include <algorithm> #include <algorithm>
#include <gtest/gtest.h>
#include <BS_thread_pool.hpp>
#include "sample.h" #include "sample.h"
#include "exposer.h" #include "exposer.h"
#include "all_cases.h" #include "all_cases/all_cases.h"
#include "short_code.h" #include "short_code/short_code.h"
#include "common_code.h" #include "common_code/common_code.h"
#include "gtest/gtest.h"
#include "BS_thread_pool.hpp"
using klotski::cases::AllCases; using klotski::cases::AllCases;
using klotski::cases::BasicRanges; using klotski::cases::BasicRanges;

Loading…
Cancel
Save