From a1bfc4917d543cda869c0dae699e3a5f9bcb4bcc Mon Sep 17 00:00:00 2001 From: Daniel Parker Date: Mon, 21 Oct 2024 08:31:16 -0400 Subject: [PATCH] Add tests --- test/corelib/src/ojson_object_tests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/corelib/src/ojson_object_tests.cpp b/test/corelib/src/ojson_object_tests.cpp index 810d63c8c..5a7ee074d 100644 --- a/test/corelib/src/ojson_object_tests.cpp +++ b/test/corelib/src/ojson_object_tests.cpp @@ -92,6 +92,8 @@ TEST_CASE("ojson object erase with iterator") CHECK(doc.size() == 1); CHECK(doc.at("b") == 2); + CHECK(doc.at("b") == 2.0); + CHECK(doc.at("b") == 2.0f); CHECK(doc["b"] == 2); }