trackler 2.1.0.0 → 2.1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/common/exercises/connect/description.md +2 -1
- data/common/exercises/crypto-square/canonical-data.json +2 -2
- data/common/exercises/two-bucket/canonical-data.json +27 -1
- data/lib/trackler/version.rb +1 -1
- data/tracks/c/exercises/perfect-numbers/src/example.c +8 -4
- data/tracks/clojure/config.json +5 -0
- data/tracks/clojure/exercises/secret-handshake/project.clj +4 -0
- data/tracks/clojure/exercises/secret-handshake/src/example.clj +19 -0
- data/tracks/clojure/exercises/secret-handshake/test/secret_handshake_test.clj +55 -0
- data/tracks/cpp/.travis.yml +4 -3
- data/tracks/cpp/README.md +1 -1
- data/tracks/cpp/config.json +171 -67
- data/tracks/cpp/docs/ABOUT.md +2 -2
- data/tracks/cpp/docs/INSTALLATION.md +22 -28
- data/tracks/cpp/docs/TESTS.md +1 -1
- data/tracks/cpp/exercises/anagram/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/beer-song/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/binary/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/bob/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/clock/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/clock/clock_test.cpp +188 -64
- data/tracks/cpp/exercises/clock/example.cpp +17 -12
- data/tracks/cpp/exercises/clock/example.h +1 -0
- data/tracks/cpp/exercises/crypto-square/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/difference-of-squares/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/etl/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/etl/etl_test.cpp +5 -5
- data/tracks/cpp/exercises/food-chain/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/gigasecond/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/gigasecond/example.cpp +2 -6
- data/tracks/cpp/exercises/gigasecond/example.h +2 -2
- data/tracks/cpp/exercises/gigasecond/gigasecond_test.cpp +26 -8
- data/tracks/cpp/exercises/grade-school/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/grade-school/grade_school_test.cpp +5 -6
- data/tracks/cpp/exercises/grains/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/hamming/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/hello-world/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/hexadecimal/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/leap/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/meetup/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/meetup/meetup_test.cpp +1 -1
- data/tracks/cpp/exercises/nth-prime/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/nucleotide-count/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/nucleotide-count/nucleotide_count_test.cpp +3 -4
- data/tracks/cpp/exercises/phone-number/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/prime-factors/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/queen-attack/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/raindrops/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/rna-transcription/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/robot-name/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/roman-numerals/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/say/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/scrabble-score/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/series/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/series/series_test.cpp +11 -11
- data/tracks/cpp/exercises/sieve/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/space-age/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/sum-of-multiples/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/triangle/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/trinary/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/word-count/CMakeLists.txt +2 -9
- data/tracks/cpp/exercises/word-count/word_count_test.cpp +14 -15
- data/tracks/go/README.md +27 -13
- data/tracks/go/config.json +1 -0
- data/tracks/go/exercises/connect/.meta/gen.go +1 -3
- data/tracks/go/exercises/connect/cases_test.go +2 -1
- data/tracks/go/exercises/custom-set/.meta/gen.go +122 -101
- data/tracks/go/exercises/custom-set/cases_test.go +13 -4
- data/tracks/go/exercises/custom-set/custom_set_test.go +2 -2
- data/tracks/go/exercises/hamming/.meta/gen.go +1 -3
- data/tracks/go/exercises/hamming/cases_test.go +7 -1
- data/tracks/go/exercises/hamming/example.go +1 -1
- data/tracks/go/exercises/hamming/hamming_test.go +1 -1
- data/tracks/go/exercises/hello-world/{hello_example_test.go → example_helloworld_test.go} +0 -0
- data/tracks/go/exercises/house/house_test.go +8 -8
- data/tracks/go/exercises/meetup/.meta/gen.go +1 -3
- data/tracks/go/exercises/meetup/cases_test.go +2 -1
- data/tracks/go/exercises/palindrome-products/example.go +1 -1
- data/tracks/go/exercises/palindrome-products/palindrome_products_test.go +1 -1
- data/tracks/go/exercises/pascals-triangle/pascals_triangle_test.go +24 -4
- data/tracks/go/exercises/rna-transcription/.meta/gen.go +1 -3
- data/tracks/go/exercises/rna-transcription/cases_test.go +2 -1
- data/tracks/go/exercises/roman-numerals/.meta/gen.go +1 -3
- data/tracks/go/exercises/roman-numerals/cases_test.go +2 -1
- data/tracks/go/exercises/roman-numerals/example.go +1 -1
- data/tracks/go/exercises/transpose/.meta/gen.go +1 -3
- data/tracks/go/exercises/transpose/cases_test.go +2 -1
- data/tracks/go/exercises/transpose/transpose_test.go +5 -0
- data/tracks/go/exercises/word-count/.meta/gen.go +1 -3
- data/tracks/go/exercises/word-count/cases_test.go +2 -1
- data/tracks/go/gen/gen.go +3 -2
- data/tracks/java/config.json +5 -0
- data/tracks/java/exercises/saddle-points/build.gradle +17 -0
- data/tracks/java/exercises/saddle-points/src/example/java/Matrix.java +44 -0
- data/tracks/java/exercises/saddle-points/src/example/java/MatrixCoordinate.java +31 -0
- data/tracks/java/exercises/saddle-points/src/main/java/Matrix.java +5 -0
- data/tracks/java/exercises/saddle-points/src/main/java/MatrixCoordinate.java +31 -0
- data/tracks/java/exercises/saddle-points/src/test/java/MatrixTest.java +82 -0
- data/tracks/java/exercises/settings.gradle +1 -0
- data/tracks/javascript/.travis.yml +3 -1
- data/tracks/javascript/Makefile +2 -8
- data/tracks/javascript/SETUP.md +1 -2
- data/tracks/javascript/docs/INSTALLATION.md +3 -4
- data/tracks/javascript/docs/TESTS.md +14 -26
- data/tracks/javascript/exercises/hamming/example.js +7 -11
- data/tracks/javascript/exercises/hello-world/HINTS.md +3 -3
- data/tracks/javascript/exercises/robot-simulator/example.js +72 -73
- data/tracks/perl6/config.json +5 -0
- data/tracks/perl6/exercises/clock/Clock.pm6 +4 -0
- data/tracks/perl6/exercises/clock/Example.pm6 +12 -0
- data/tracks/perl6/exercises/clock/clock.t +534 -0
- data/tracks/perl6/exercises/clock/example.yaml +16 -0
- data/tracks/perl6/exercises/robot-name/Example.pm +11 -4
- data/tracks/php/exercises/hello-world/hello-world.php +1 -1
- data/tracks/php/exercises/hello-world/hello-world_test.php +1 -11
- data/tracks/php/exercises/robot-name/robot-name_test.php +1 -0
- data/tracks/purescript/config.json +7 -0
- data/tracks/purescript/exercises/largest-series-product/bower.json +16 -0
- data/tracks/purescript/exercises/largest-series-product/examples/src/LargestSeriesProduct.purs +31 -0
- data/tracks/purescript/exercises/largest-series-product/src/LargestSeriesProduct.purs +3 -0
- data/tracks/purescript/exercises/largest-series-product/test/Main.purs +73 -0
- data/tracks/python/exercises/sublist/sublist_test.py +94 -55
- data/tracks/ruby/README.md +38 -25
- data/tracks/ruby/exercises/hamming/example.tt +6 -4
- data/tracks/ruby/exercises/hamming/hamming_test.rb +4 -5
- data/tracks/ruby/exercises/linked-list/linked_list_test.rb +16 -0
- data/tracks/ruby/exercises/luhn/luhn_test.rb +5 -5
- data/tracks/ruby/exercises/ocr-numbers/.meta/.version +1 -0
- data/tracks/ruby/exercises/ocr-numbers/example.rb +42 -61
- data/tracks/ruby/exercises/ocr-numbers/example.tt +21 -0
- data/tracks/ruby/exercises/ocr-numbers/ocr_numbers_test.rb +63 -138
- data/tracks/ruby/lib/generator/exercise_cases.rb +43 -0
- data/tracks/ruby/lib/generator/underscore.rb +9 -0
- data/tracks/ruby/lib/hamming_cases.rb +9 -14
- data/tracks/ruby/lib/luhn_cases.rb +2 -18
- data/tracks/ruby/lib/ocr_numbers_cases.rb +20 -0
- data/tracks/ruby/lib/pig_latin_cases.rb +2 -12
- data/tracks/ruby/test/generator/underscore_test.rb +23 -0
- data/tracks/scala/config.json +316 -316
- metadata +26 -10
- data/tracks/cpp/exercises/etl/require_equal_containers.h +0 -88
- data/tracks/cpp/exercises/grade-school/require_equal_containers.h +0 -88
- data/tracks/cpp/exercises/nucleotide-count/require_equal_containers.h +0 -88
- data/tracks/cpp/exercises/series/require_equal_containers.h +0 -88
- data/tracks/cpp/exercises/word-count/require_equal_containers.h +0 -88
- data/tracks/javascript/exercises/acronym/package.json +0 -12
- data/tracks/javascript/package.json +0 -12
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#define BOOST_TEST_MAIN
|
3
3
|
#include <boost/test/unit_test.hpp>
|
4
4
|
|
5
|
-
// See <http://www.boost.org/doc/libs/
|
5
|
+
// See <http://www.boost.org/doc/libs/1_59_0/doc/html/date_time.html>
|
6
6
|
// for documentation on boost::gregorian::date
|
7
7
|
|
8
8
|
BOOST_AUTO_TEST_CASE(monteenth_of_May_2013)
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -2,7 +2,6 @@
|
|
2
2
|
#define BOOST_TEST_MAIN
|
3
3
|
#include <boost/test/unit_test.hpp>
|
4
4
|
#include <stdexcept>
|
5
|
-
#include "require_equal_containers.h"
|
6
5
|
|
7
6
|
BOOST_AUTO_TEST_CASE(has_no_nucleotides)
|
8
7
|
{
|
@@ -11,7 +10,7 @@ BOOST_AUTO_TEST_CASE(has_no_nucleotides)
|
|
11
10
|
|
12
11
|
const auto actual = dna.nucleotide_counts();
|
13
12
|
|
14
|
-
|
13
|
+
BOOST_TEST(expected == actual);
|
15
14
|
}
|
16
15
|
|
17
16
|
#if defined(EXERCISM_RUN_ALL_TESTS)
|
@@ -36,7 +35,7 @@ BOOST_AUTO_TEST_CASE(repetitive_sequence_has_only_guanosine)
|
|
36
35
|
|
37
36
|
const auto actual = dna.nucleotide_counts();
|
38
37
|
|
39
|
-
|
38
|
+
BOOST_TEST(expected == actual);
|
40
39
|
}
|
41
40
|
|
42
41
|
BOOST_AUTO_TEST_CASE(counts_only_thymidine)
|
@@ -74,6 +73,6 @@ BOOST_AUTO_TEST_CASE(counts_all_nucleotides)
|
|
74
73
|
|
75
74
|
auto actual = dna.nucleotide_counts();
|
76
75
|
|
77
|
-
|
76
|
+
BOOST_TEST(expected == actual);
|
78
77
|
}
|
79
78
|
#endif
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|
@@ -11,7 +11,7 @@ project(${exercise} CXX)
|
|
11
11
|
set(Boost_USE_STATIC_LIBS ON)
|
12
12
|
set(Boost_USE_MULTITHREADED ON)
|
13
13
|
set(Boost_USE_STATIC_RUNTIME OFF)
|
14
|
-
find_package(Boost 1.
|
14
|
+
find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework date_time regex)
|
15
15
|
|
16
16
|
# Enable C++11 features on gcc/clang
|
17
17
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "(GNU|Clang)")
|
@@ -33,15 +33,8 @@ else()
|
|
33
33
|
set(exercise_cpp "")
|
34
34
|
endif()
|
35
35
|
|
36
|
-
# Include a test helper header if it exists
|
37
|
-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/require_equal_containers.h)
|
38
|
-
set(test_helper require_equal_containers.h)
|
39
|
-
else()
|
40
|
-
set(test_helper "")
|
41
|
-
endif()
|
42
|
-
|
43
36
|
# Build executable from sources and headers
|
44
|
-
add_executable(${exercise} ${file}_test.cpp ${
|
37
|
+
add_executable(${exercise} ${file}_test.cpp ${exercise_cpp} ${file}.h)
|
45
38
|
|
46
39
|
# We need boost includes
|
47
40
|
target_include_directories(${exercise} PRIVATE ${Boost_INCLUDE_DIRS})
|