From b15c4204632e60259c9c9f45d84fe496d69b2127 Mon Sep 17 00:00:00 2001 From: Jan-Joost Spanjers Date: Thu, 5 Nov 2026 21:09:34 +0100 Subject: [PATCH 1/3] Use Catch2 v3 --- test/cpp/BitstreamTests.cpp | 2 +- test/cpp/CMakeLists.txt | 2 +- test/cpp/HuffmanTreeTests.cpp | 2 +- test/cpp/InflateTests.cpp | 2 +- test/cpp/WindowTests.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/cpp/BitstreamTests.cpp b/test/cpp/BitstreamTests.cpp index 5aa382c..299f9cf 100644 --- a/test/cpp/BitstreamTests.cpp +++ b/test/cpp/BitstreamTests.cpp @@ -6,7 +6,7 @@ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. */ -#include +#include #include #include diff --git a/test/cpp/CMakeLists.txt b/test/cpp/CMakeLists.txt index e41d38b..a49cffe 100644 --- a/test/cpp/CMakeLists.txt +++ b/test/cpp/CMakeLists.txt @@ -1,7 +1,7 @@ add_executable(cpptests) -find_package(Catch2 CONFIG REQUIRED) +find_package(Catch2 3.0 CONFIG REQUIRED) target_link_libraries(cpptests PRIVATE inflatelib::inflatelib diff --git a/test/cpp/HuffmanTreeTests.cpp b/test/cpp/HuffmanTreeTests.cpp index 0798c32..4bc0a98 100644 --- a/test/cpp/HuffmanTreeTests.cpp +++ b/test/cpp/HuffmanTreeTests.cpp @@ -6,7 +6,7 @@ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. */ -#include +#include #include #include diff --git a/test/cpp/InflateTests.cpp b/test/cpp/InflateTests.cpp index 9fcc10f..767fe9a 100644 --- a/test/cpp/InflateTests.cpp +++ b/test/cpp/InflateTests.cpp @@ -6,7 +6,7 @@ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. */ -#include +#include #define __STDC_WANT_LIB_EXT1__ 1 /* For fopen_s */ #include diff --git a/test/cpp/WindowTests.cpp b/test/cpp/WindowTests.cpp index 434d68e..c5eebb9 100644 --- a/test/cpp/WindowTests.cpp +++ b/test/cpp/WindowTests.cpp @@ -6,7 +6,7 @@ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. */ -#include +#include #include #include From a4d243e8629aef550678744ad57f5baf9ab75cf3 Mon Sep 17 00:00:00 2001 From: Duncan Horn <40036384+dunhor@users.noreply.github.com> Date: Thu, 5 Nov 2026 16:43:28 -0800 Subject: [PATCH 2/3] Apply suggestion from @dunhor Build issue --- test/cpp/BitstreamTests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cpp/BitstreamTests.cpp b/test/cpp/BitstreamTests.cpp index 299f9cf..35f881a 100644 --- a/test/cpp/BitstreamTests.cpp +++ b/test/cpp/BitstreamTests.cpp @@ -6,6 +6,7 @@ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +#include #include #include From 638d8568df3e089c27dcc9eeed7987c60b894f8d Mon Sep 17 00:00:00 2001 From: Duncan Horn <40036384+dunhor@users.noreply.github.com> Date: Thu, 5 Nov 2026 16:46:54 -0800 Subject: [PATCH 3/3] Apply suggestion from @dunhor Same build issue --- test/cpp/WindowTests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/cpp/WindowTests.cpp b/test/cpp/WindowTests.cpp index c5eebb9..606775d 100644 --- a/test/cpp/WindowTests.cpp +++ b/test/cpp/WindowTests.cpp @@ -6,6 +6,7 @@ * TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE AND NONINFRINGEMENT. */ +#include #include #include