From 828bac981a1976c087038c8c8de26be98873f568 Mon Sep 17 00:00:00 2001 From: Fredrik Sandhei Date: Sun, 8 Oct 2023 13:56:55 +0200 Subject: [PATCH] Add check for comparison from left to right. --- tests/src/unit-comparison.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/src/unit-comparison.cpp b/tests/src/unit-comparison.cpp index 7f990d252..37b51ff03 100644 --- a/tests/src/unit-comparison.cpp +++ b/tests/src/unit-comparison.cpp @@ -356,6 +356,7 @@ TEST_CASE("lexicographical comparison operators") CAPTURE(i) CAPTURE(j) CHECK((j_values[i] == j_values[j]) == expected_eq[i][j]); + CHECK(expected_eq[i][j] == (j_values[i] == j_values[j])); } }