You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following commands will confirm the failing cases.
val indices = (0 to 99999).toArray
val values = Array.fillDouble(math.random)
scala.util.Sorting.quickSortInt(Ordering.byInt, Double) // Works
val values2 = Array.fillDouble(0.0)
scala.util.Sorting.quickSortInt(Ordering.byInt, Double) // Fails
In Sorting.scala's code if I change lines 144 and 151 to use equiv, instead of ==, then the problem seems to be resolved.
The text was updated successfully, but these errors were encountered:
The following commands will confirm the failing cases.
val indices = (0 to 99999).toArray
val values = Array.fillDouble(math.random)
scala.util.Sorting.quickSortInt(Ordering.byInt, Double) // Works
val values2 = Array.fillDouble(0.0)
scala.util.Sorting.quickSortInt(Ordering.byInt, Double) // Fails
In Sorting.scala's code if I change lines 144 and 151 to use equiv, instead of ==, then the problem seems to be resolved.
The text was updated successfully, but these errors were encountered: