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