Skip to content
Snippets Groups Projects
Verified Commit 7efd9c8c authored by Timm Fitschen's avatar Timm Fitschen
Browse files

TST: more tests for POV number parsing

parent 161608fa
No related branches found
No related tags found
2 merge requests!96DOC: Added CITATION.cff to the list of files in the release guide where the...,!90FIX server#143
Pipeline #35591 passed
......@@ -11,6 +11,8 @@ class POVTest {
public static final String MAX_INT = "2147483647";
public static final String MIN_INT = "-2147483648";
public static final String MAX_DOUBLE = "1.7976931348623157E308";
public static final String MIN_DOUBLE = "4.9E-324";
@ParameterizedTest
@ValueSource(strings = {"16", MAX_INT, MIN_INT, "0", "-0", "1", "- 1", "-1"})
......@@ -36,8 +38,21 @@ class POVTest {
@ParameterizedTest
@ValueSource(
strings = {
"1e+3", "1E+3", "5e9", "5E9", "16", MAX_INT, MIN_INT, "0", "-0", "1", "- 1", "-1", "2e-323",
"2E-323", "2 e -23"
"1.2123e+3",
"1.21234E+3",
"5.213e2",
"5.2234E2",
"16.0",
MAX_DOUBLE,
MIN_DOUBLE,
"0.0",
"-0.0",
"1.2",
"- 1.2",
"-1.2",
"2e-323",
"2E-323",
"2 e -323"
})
void testNumberPatternMatchDouble(String doubleValue) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment