Skip to content

Commit 11f8a81

Browse files
committed
refactor: 现在测试宏是 ALGORITHM_TEST_MACRO
Signed-off-by: Certseeds <51754303+Certseeds@users.noreply.github.com>
1 parent b3a8206 commit 11f8a81

466 files changed

Lines changed: 878 additions & 878 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

algorithm/2020S/20200511/20200511_4th.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <iostream>
77
#include <unordered_set>
88

9-
#ifdef CS203_DSAA_TEST_MACRO
9+
#ifdef ALGORITHM_TEST_MACRO
1010
namespace fourth_20200511{
1111
#endif
1212

@@ -66,6 +66,6 @@ static const auto faster_streams = [] {
6666
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
6767
return 0;
6868
}();
69-
#ifdef CS203_DSAA_TEST_MACRO
69+
#ifdef ALGORITHM_TEST_MACRO
7070
}
7171
#endif

algorithm/2020S/20200511/20200511_4th_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: AGPL-3.0-or-later
22
// SPDX-FileCopyrightText: 2020-2025 nanoseeds
3-
#ifdef CS203_DSAA_TEST_MACRO
3+
#ifdef ALGORITHM_TEST_MACRO
44

55
#include <catch_main.hpp>
66
#include <tuple>
@@ -41,4 +41,4 @@ TEST_CASE("test case with sequence", "[test 4th_20200511 1]") {
4141
}
4242
}
4343
}
44-
#endif //CS203_DSAA_TEST_MACRO
44+
#endif //ALGORITHM_TEST_MACRO

algorithm/2020S/20200511/20200511_fst.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <iostream>
77
#include <deque>
88

9-
#ifdef CS203_DSAA_TEST_MACRO
9+
#ifdef ALGORITHM_TEST_MACRO
1010
namespace fst_20200511{
1111
#endif
1212

@@ -69,6 +69,6 @@ static const auto faster_streams = [] {
6969
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
7070
return 0;
7171
}();
72-
#ifdef CS203_DSAA_TEST_MACRO
72+
#ifdef ALGORITHM_TEST_MACRO
7373
}
7474
#endif

algorithm/2020S/20200511/20200511_fst_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: AGPL-3.0-or-later
22
// SPDX-FileCopyrightText: 2020-2025 nanoseeds
3-
#ifdef CS203_DSAA_TEST_MACRO
3+
#ifdef ALGORITHM_TEST_MACRO
44

55
#include <catch_main.hpp>
66
#include <tuple>
@@ -41,4 +41,4 @@ TEST_CASE("test case with sequence", "[test 02 A]") {
4141
}
4242
}
4343
}
44-
#endif //CS203_DSAA_TEST_MACRO
44+
#endif //ALGORITHM_TEST_MACRO

algorithm/2020S/20200511/20200511_snd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <algorithm>
88
#include <unordered_map>
99

10-
#ifdef CS203_DSAA_TEST_MACRO
10+
#ifdef ALGORITHM_TEST_MACRO
1111
namespace snd_20200511 {
1212
#endif
1313

@@ -73,6 +73,6 @@ static const auto faster_streams = [] {
7373
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
7474
return 0;
7575
}();
76-
#ifdef CS203_DSAA_TEST_MACRO
76+
#ifdef ALGORITHM_TEST_MACRO
7777
}
7878
#endif

algorithm/2020S/20200511/20200511_snd_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: AGPL-3.0-or-later
22
// SPDX-FileCopyrightText: 2020-2025 nanoseeds
3-
#ifdef CS203_DSAA_TEST_MACRO
3+
#ifdef ALGORITHM_TEST_MACRO
44

55
#include <catch_main.hpp>
66
#include <tuple>
@@ -41,4 +41,4 @@ TEST_CASE("test case with sequence", "[test snd_20200511 1]") {
4141
}
4242
}
4343
}
44-
#endif //CS203_DSAA_TEST_MACRO
44+
#endif //ALGORITHM_TEST_MACRO

algorithm/2020S/20200511/20200511_trd.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <vector>
66
#include <iostream>
77

8-
#ifdef CS203_DSAA_TEST_MACRO
8+
#ifdef ALGORITHM_TEST_MACRO
99
namespace trd_20200511{
1010
#endif
1111

@@ -42,6 +42,6 @@ static const auto faster_streams = [] {
4242
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
4343
return 0;
4444
}();
45-
#ifdef CS203_DSAA_TEST_MACRO
45+
#ifdef ALGORITHM_TEST_MACRO
4646
}
4747
#endif

algorithm/2020S/20200511/20200511_trd_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: AGPL-3.0-or-later
22
// SPDX-FileCopyrightText: 2020-2025 nanoseeds
3-
#ifdef CS203_DSAA_TEST_MACRO
3+
#ifdef ALGORITHM_TEST_MACRO
44

55
#include <catch_main.hpp>
66
#include <tuple>
@@ -41,4 +41,4 @@ TEST_CASE("test case with sequence", "[test trd_20200511 1]") {
4141
}
4242
}
4343
}
44-
#endif //CS203_DSAA_TEST_MACRO
44+
#endif //ALGORITHM_TEST_MACRO

algorithm/2020S/20200511/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ foreach (elementName IN LISTS dependencies)
1111
add_executable(${PROJECT_NAME}_${elementName} ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_DAY}_${elementName}.cpp)
1212
set(CMAKE_CXX_STANDARD 17)
1313
add_executable(${PROJECT_NAME}_${elementName}_test ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_DAY}_${elementName}_test.cpp)
14-
target_compile_definitions(${PROJECT_NAME}_${elementName}_test PRIVATE CS203_DSAA_TEST_MACRO)
14+
target_compile_definitions(${PROJECT_NAME}_${elementName}_test PRIVATE ALGORITHM_TEST_MACRO)
1515
target_link_libraries(${PROJECT_NAME}_${elementName}_test PRIVATE algorithm_template_INCLUDE)
1616
MESSAGE(STATUS "${PROJECT_NAME}_${elementName} from ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_DAY}_${elementName}.cpp")
1717
add_test(${PROJECT_NAME}_${elementName}_CTEST ${PROJECT_NAME}_${elementName}_test)

algorithm/2020S/20200610/20200610_fst.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <algorithm>
88
#include <unordered_set>
99

10-
#ifdef CS203_DSAA_TEST_MACRO
10+
#ifdef ALGORITHM_TEST_MACRO
1111
namespace fst_20200610 {
1212
#endif
1313

@@ -105,6 +105,6 @@ static const auto faster_streams = [] {
105105
// 关闭c++风格输入输出 , 与C风格输入输出的同步,提高性能.
106106
return 0;
107107
}();
108-
#ifdef CS203_DSAA_TEST_MACRO
108+
#ifdef ALGORITHM_TEST_MACRO
109109
}
110110
#endif

0 commit comments

Comments
 (0)