Skip to content

Commit cbe5ba3

Browse files
committed
Add test for scala/bug#11152
1 parent e9995a1 commit cbe5ba3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/junit/scala/collection/immutable/RangeTest.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,9 @@ class RangeTest {
8989
assertEquals(20, (20 to 1 by -1).min(Ordering.Int.reverse))
9090
assertEquals(1, (20 to 1 by -1).max(Ordering.Int.reverse))
9191
}
92+
93+
@Test
94+
def t11152: Unit = {
95+
assertEquals(11, (BigDecimal(1) to BigDecimal(s"1.${"0" * 32}1") by BigDecimal(s"0.${"0" * 33}1")).toList.length)
96+
}
9297
}

0 commit comments

Comments
 (0)