Skip to content

Commit 9397181

Browse files
committed
Modify FloatToDecimalTest, DoubleToDecimalTest to limit test run lengths
1 parent b76ce0d commit 9397181

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/test/java/com/fasterxml/jackson/core/io/schubfach/DoubleToDecimalTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ void testHardValues() {
141141

142142
@Test
143143
void randomNumberTests() {
144-
DoubleToDecimalChecker.randomNumberTests(1_000_000, new Random());
144+
// 29-Nov-2022, tatu: Reduce from 1M due to slowness
145+
DoubleToDecimalChecker.randomNumberTests(250_000, new Random());
145146
}
146147
}

src/test/java/com/fasterxml/jackson/core/io/schubfach/FloatToDecimalTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ void testPaxson() {
110110
*/
111111
@Test
112112
void testInts() {
113-
for (int i = 1; i < 1 << P - 1; ++i) {
113+
// 29-Nov-2022, tatu: Reduce from original due to slowness
114+
// for (int i = 1; i < 1 << P - 1; ++i) {
115+
for (int i = 1; i < 1 << P - 1; i += 3) {
114116
toDec(i);
115117
}
116118
}

0 commit comments

Comments
 (0)