Skip to content

Commit

Permalink
Test: Include catch2 header from system and respect CATCH3
Browse files Browse the repository at this point in the history
The compile option to use the system’s catch2, introduced in the commit
referenced below, is never used anywhere.  Neither is the check for catch2
version 3, which requires slightly different handling.

Fixes: bd6812f
  • Loading branch information
qsuscs authored and istoph committed Apr 15, 2024
1 parent 2e8d84e commit 75c5e4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/catchwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
#include <Tui/ZColor.h>
#include <Tui/ZDocument.h>

#include <../third-party/catch.hpp>
#ifdef CATCH3
#include <catch2/catch_all.hpp>
using Catch::Approx;
#else
#include <catch2/catch.hpp>
#endif

#include "filecategorize.h"

Expand Down
File renamed without changes.

0 comments on commit 75c5e4d

Please sign in to comment.