From d820d983e90b740214f07f7724af9fefe4cadbe9 Mon Sep 17 00:00:00 2001 From: xcyang Date: Sun, 3 Dec 2023 22:28:20 -0500 Subject: [PATCH] Aimed at fixing compilation error with 2 tests --- tests/src/unit-make3.cpp | 57 ---------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 tests/src/unit-make3.cpp diff --git a/tests/src/unit-make3.cpp b/tests/src/unit-make3.cpp deleted file mode 100644 index edaf76b97..000000000 --- a/tests/src/unit-make3.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// __ _____ _____ _____ -// __| | __| | | | JSON for Modern C++ (supporting code) -// | | |__ | | | | | | version 3.11.3 -// |_____|_____|_____|_|___| https://github.com/nlohmann/json -// -// SPDX-FileCopyrightText: 2013-2023 Niels Lohmann -// SPDX-License-Identifier: MIT - -#include "doctest_compatibility.h" - -#include -#include -using nlohmann::json; - -TEST_SUITE("nlohmann/json test suite - More") -{ - TEST_CASE("Comparing JSON Objects") - { - SECTION("Ordering of Object Keys Matters") - { - json object1 = { - {"name", "Alice"}, - {"age", 25}, - {"city", "Wonderland"} - }; - - json object2 = { - {"name", "Alice"}, - {"city", "Wonderland"}, - {"age", 25} - }; - - // Expecting the objects to be different due to key order - CHECK(object1 != object2); - } - - SECTION("Ordering of Object Keys Doesn't Matter") - { - json object1 = { - {"name", "Bob"}, - {"age", 30}, - {"city", "Example City"} - }; - - json object2 = { - {"age", 30}, - {"name", "Bob"}, - {"city", "Example City"} - }; - - // Expecting the objects to be considered equal - CHECK(object1 == object2); - } - } - - // Add more test cases and sections as needed to cover other functionalities. -} \ No newline at end of file