Skip to content

Commit

Permalink
Approx
Browse files Browse the repository at this point in the history
  • Loading branch information
bblanchon committed Sep 4, 2024
1 parent 4a77a3f commit 404fad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/tests/JsonDeserializer/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ TEST_CASE("deserialize JSON object") {
REQUIRE(err == DeserializationError::Ok);
REQUIRE(doc.is<JsonObject>());
REQUIRE(obj.size() == 2);
REQUIRE(obj["key1"] == 12.345f);
REQUIRE(obj["key1"] == Approx(12.345f));
REQUIRE(obj["key2"] == -7E3f);
}

Expand Down

0 comments on commit 404fad1

Please sign in to comment.