@@ -54,20 +54,24 @@ public void testValidIntegralValuesWithoutJavaSemantics() {
54
54
@ Test
55
55
public void testWithLosslessNarrowing () {
56
56
schemaValidatorsConfig .setLosslessNarrowing (true );
57
+ for (String validValue : validIntegralValues ) {
57
58
assertSame (validValue , JsonType .INTEGER ,
58
59
getValueNodeType (DecimalNode .valueOf (new BigDecimal ("1.0" )), schemaValidatorsConfig ));
59
60
60
61
assertSame (validValue , JsonType .NUMBER ,
61
- getValueNodeType (DecimalNode .valueOf (new BigDecimal ("1.5" )), schemaValidatorsConfig ));
62
+ getValueNodeType (DecimalNode .valueOf (new BigDecimal ("1.5" )), schemaValidatorsConfig ));
63
+ }
62
64
}
63
65
64
66
@ Test
65
67
public void testWithoutLosslessNarrowing () {
66
68
schemaValidatorsConfig .setLosslessNarrowing (false );
67
- assertSame (validValue , JsonType .NUMBER ,
68
- getValueNodeType (DecimalNode .valueOf (new BigDecimal ("1.0" )), schemaValidatorsConfig ));
69
+ for (String validValue : validIntegralValues ) {
70
+ assertSame (validValue , JsonType .NUMBER ,
71
+ getValueNodeType (DecimalNode .valueOf (new BigDecimal ("1.0" )), schemaValidatorsConfig ));
69
72
70
- assertSame (validValue , JsonType .NUMBER ,
71
- getValueNodeType (DecimalNode .valueOf (new BigDecimal ("1.5" )), schemaValidatorsConfig ));
73
+ assertSame (validValue , JsonType .NUMBER ,
74
+ getValueNodeType (DecimalNode .valueOf (new BigDecimal ("1.5" )), schemaValidatorsConfig ));
75
+ }
72
76
}
73
77
}
0 commit comments