aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-02-04 00:10:29 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-02-04 00:10:29 +0000
commit2c5865f60af213d7f447005e47d313e2f01373c0 (patch)
treee4bf83fc0cccb83176758d6b21735223eb735c17
parentbce1b515d4e50c4e2d39e705d6d1708fe634b185 (diff)
Add test for negative infinity too
-rw-r--r--document/src/tests/documentselectparsertest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/document/src/tests/documentselectparsertest.cpp b/document/src/tests/documentselectparsertest.cpp
index 464d3c66a7a..ce4b69419a3 100644
--- a/document/src/tests/documentselectparsertest.cpp
+++ b/document/src/tests/documentselectparsertest.cpp
@@ -1655,6 +1655,7 @@ TEST_F(DocumentSelectParserTest, test_parse_utilities_handle_malformed_input)
// TODO double outside representable range returns Inf, but we probably would
// like this to trigger a parse failure?
check_parse_double("1.79769e+309", true, std::numeric_limits<double>::infinity());
+ check_parse_double("-1.79769e+309", true, -std::numeric_limits<double>::infinity());
}
TEST_F(DocumentSelectParserTest, imported_field_references_are_treated_as_valid_field_with_missing_value) {