Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nix/zug.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
cmake,
ninja,
boost,
catch2,
catch2_3,
sources ? ../.,
withTests ? false,
withExamples ? false,
Expand Down
3 changes: 1 addition & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ foreach(_file IN LISTS zug_unit_tests)
add_executable(${_target} EXCLUDE_FROM_ALL "${_file}")
set_target_properties(${_target} PROPERTIES OUTPUT_NAME ${_output})
add_dependencies(tests ${_target})
target_compile_definitions(${_target} PUBLIC CATCH_CONFIG_MAIN)
target_link_libraries(${_target} PUBLIC zug-dev Catch2::Catch2)
target_link_libraries(${_target} PUBLIC zug-dev Catch2::Catch2WithMain)
add_test("test/${_output}" ${_output})
endforeach()
2 changes: 1 addition & 1 deletion test/__inline_var_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ message("adding unit test: inline_var_tests")
file(GLOB_RECURSE inline_var_test_files "*.cpp")
add_executable(inline_var_tests EXCLUDE_FROM_ALL ${inline_var_test_files})
add_dependencies(tests inline_var_tests)
target_link_libraries(inline_var_tests PUBLIC zug-dev)
target_link_libraries(inline_var_tests PUBLIC zug-dev Catch2::Catch2WithMain)
add_test("test/inline_var_tests" inline_var_tests)
2 changes: 1 addition & 1 deletion test/__inline_var_tests/inline_var.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <zug/detail/inline_constexpr.hpp>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

using namespace zug::detail;

Expand Down
3 changes: 1 addition & 2 deletions test/__inline_var_tests/main.cpp
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
2 changes: 1 addition & 1 deletion test/compose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <zug/compose.hpp>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <array>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion test/into.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <zug/transducer/filter.hpp>
#include <zug/transducer/map.hpp>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

using namespace zug;

Expand Down
2 changes: 1 addition & 1 deletion test/into_vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <zug/transducer/map.hpp>
#include <zug/transducer/transducer.hpp>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

using namespace zug;

Expand Down
2 changes: 1 addition & 1 deletion test/meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <zug/meta.hpp>
#include <zug/util.hpp>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

using namespace zug;

Expand Down
2 changes: 1 addition & 1 deletion test/reduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/reduce.hpp>
#include <zug/reducing/first.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/reductor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/reducing/first.hpp>
#include <zug/reducing/last.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/run.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/sequence.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/state_traits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <zug/transducer/transducer.hpp>
#include <zug/util.hpp>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

using namespace zug;

Expand Down
2 changes: 1 addition & 1 deletion test/transduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <zug/transducer/take.hpp>
#include <zug/util.hpp>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion test/transducer/cat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/cat.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/chain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/chain.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/count.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/cycle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/dedupe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/distinct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/drop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/drop_while.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/each.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/each.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/eager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/enumerate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/enumerate.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/interelave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/interleave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/interleave.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/interpose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/iter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/iter.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <zug/transducer/map.hpp>
#include <zug/transducer/take.hpp>

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

using namespace zug;

Expand Down
2 changes: 1 addition & 1 deletion test/transducer/map_indexed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/transduce.hpp>
#include <zug/transducer/map_indexed.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/mapcat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/mapcat.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/partition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/partition_by.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/product.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/random_sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <cstdint>
#include <limits>
Expand Down
3 changes: 2 additions & 1 deletion test/transducer/range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_floating_point.hpp>

#include <zug/into_vector.hpp>
#include <zug/reducing/last.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/read.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/read.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/readbuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/remove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/transduce.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/repeat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/compose.hpp>
#include <zug/into_vector.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/replace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transduce.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/transducer/scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// See accompanying file LICENSE or copy at http://boost.org/LICENSE_1_0.txt
//

#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <zug/into_vector.hpp>
#include <zug/transducer/count.hpp>
Expand Down
Loading