Skip to content

Commit

Permalink
Changed some float/double values since Java 21 has some weird roudnin…
Browse files Browse the repository at this point in the history
…g errors
  • Loading branch information
mskacelik authored and jmartisk committed Nov 27, 2024
1 parent ff737c5 commit 94f7f1f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public void arraysTest() throws IOException, URISyntaxException {
prop("longPrimitiveArray", new long[] { 789L, 947894L, 1874448L }),
prop("longObjectArray", new Long[] { 789L, 947894L, 1874448L }),

prop("floatPrimitiveArray", new float[] { 1567.654f, 8765f, 123789456.1851f }),
prop("floatObjectArray", new Float[] { 1567.654f, 8765f, 123789456.1851f }),
prop("floatPrimitiveArray", new float[] { 1567.6f, 8765f, 3.14159f }),
prop("floatObjectArray", new Float[] { 1567.6f, 8765f, 3.14159f }),

prop("doublePrimitiveArray",
new double[] { 789.3242d, 1815d, 98765421.654897d }),
prop("doubleObjectArray", new Double[] { 789.3242d, 1815d, 98765421.654897d }),
new double[] { 789.3d, 1815d, 3.14159d }),
prop("doubleObjectArray", new Double[] { 789.3d, 1815d, 3.14159d }),

prop("bigIntegerArray",
new BigInteger[] { BigInteger.ZERO, BigInteger.ONE, BigInteger.TEN }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public void iterableTest() throws IOException, URISyntaxException {

prop("longObjectList", List.of(789L, 947894L, 1874448L)),

prop("floatObjectList", List.of(1567.654f, 8765f, 123789456.1851f)),
prop("floatObjectList", List.of(1567.1f, 8765f, 3.14159f)),

prop("doubleObjectList", List.of(789.3242d, 1815d, 98765421.654897d)),
prop("doubleObjectList", List.of(789.1d, 1815d, 3.14159d)),

prop("bigIntegerList",
List.of(BigInteger.ZERO, BigInteger.ONE, BigInteger.TEN)),
Expand Down
8 changes: 4 additions & 4 deletions client/tck/src/main/resources/core/arrays.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ query arrayHolderQuery {
longPrimitiveArray: [789, 947894, 1874448],
longObjectArray: [789, 947894, 1874448],

floatPrimitiveArray: [1567.654, 8765.0, 1.23789456E8],
floatObjectArray: [1567.654, 8765.0, 1.23789456E8],
floatPrimitiveArray: [1567.6, 8765.0, 3.14159],
floatObjectArray: [1567.6, 8765.0, 3.14159],

doublePrimitiveArray: [789.3242, 1815.0, 9.8765421654897E7],
doubleObjectArray: [789.3242, 1815.0, 9.8765421654897E7],
doublePrimitiveArray: [789.3, 1815.0, 3.14159],
doubleObjectArray: [789.3, 1815.0, 3.14159],

bigIntegerArray: [0, 1, 10]
bigDecimalArray: [0, 1, 10]
Expand Down
4 changes: 2 additions & 2 deletions client/tck/src/main/resources/core/iterable.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ query iterableHolderQuery {

longObjectList: [789, 947894, 1874448]

floatObjectList: [1567.654, 8765.0, 1.23789456E8]
floatObjectList: [1567.1, 8765.0, 3.14159]

doubleObjectList: [789.3242, 1815.0, 9.8765421654897E7]
doubleObjectList: [789.1, 1815.0, 3.14159]

bigIntegerList: [0, 1, 10]

Expand Down

0 comments on commit 94f7f1f

Please sign in to comment.