From 130205e59ea2a3be6e328095bf4b1ea411d95572 Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Tue, 8 Mar 2022 15:36:30 +0100 Subject: [PATCH] Disable broken comparison if JSON_HAS_THREE_WAY_COMPARISON --- test/src/unit-comparison.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/unit-comparison.cpp b/test/src/unit-comparison.cpp index 212afa254..6c94add60 100644 --- a/test/src/unit-comparison.cpp +++ b/test/src/unit-comparison.cpp @@ -207,7 +207,7 @@ TEST_CASE("lexicographical comparison operators") { // Skip comparing indicies 12 and 13, and 13 and 12 in C++20 pending fix // See issue #3207 -#ifdef JSON_HAS_CPP_20 +#if defined(JSON_HAS_CPP_20) || JSON_HAS_THREE_WAY_COMPARISON if ((i == 12 && j == 13) || (i == 13 && j == 12)) { continue;