Skip to content

Commit

Permalink
upgrade to cath2_3
Browse files Browse the repository at this point in the history
  • Loading branch information
tfc committed Sep 30, 2024
1 parent 782b77f commit a3b513d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 13 deletions.
4 changes: 2 additions & 2 deletions build.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv
, lib
, catch2
, catch2_3
, clang-tools
, cmake
, gbenchmark
Expand All @@ -25,7 +25,7 @@ stdenv.mkDerivation {
};

checkInputs = [
catch2
catch2_3
gbenchmark
]
++ lib.optional stdenv.cc.isClang llvm; # for llvm-cov
Expand Down
3 changes: 1 addition & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ include(Catch)

add_executable(${PROJECT_NAME}-test
gdb.cpp
main.cpp
math_expression.cpp
test.cpp
)
target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
target_compile_features(${PROJECT_NAME}-test INTERFACE cxx_std_17)
target_compile_options(${PROJECT_NAME}-test
PRIVATE -Wall -Wextra -Werror)
target_link_libraries(${PROJECT_NAME}-test Catch2::Catch2)
target_link_libraries(${PROJECT_NAME}-test Catch2::Catch2WithMain)

catch_discover_tests(${PROJECT_NAME}-test)

Expand Down
2 changes: 1 addition & 1 deletion test/gdb.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <attoparsecpp/parser.hpp>
#include <numeric>

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

using namespace apl;
using namespace std::string_literals;
Expand Down
6 changes: 0 additions & 6 deletions test/main.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion test/math_expression.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <attoparsecpp/math_expression.hpp>

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

using namespace apl;

Expand Down
2 changes: 1 addition & 1 deletion test/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <attoparsecpp/parser.hpp>

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

using namespace apl;
using namespace std::string_literals;
Expand Down

0 comments on commit a3b513d

Please sign in to comment.