File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libraries/stdlib/test/collections Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ class ArraysTest {
356
356
expect(1 , { byteArrayOf(1 , 3 , 2 ).minBy { it * it } })
357
357
expect(3 , { shortArrayOf(3 , 2 ).minBy { " a" } })
358
358
expect(2.0F , { floatArrayOf(3.0F , 2.0F ).minBy { it.toString() } })
359
- expect(2.0 , { doubleArrayOf(2.0 , 3.0 ).minBy { Math .sqrt(it) } })
359
+ expect(2.0 , { doubleArrayOf(2.0 , 3.0 ).minBy { it * it } })
360
360
}
361
361
362
362
@Test fun maxBy () {
@@ -375,7 +375,7 @@ class ArraysTest {
375
375
expect(3 , { byteArrayOf(1 , 3 , 2 ).maxBy { it * it } })
376
376
expect(3 , { shortArrayOf(3 , 2 ).maxBy { " a" } })
377
377
expect(3.0F , { floatArrayOf(3.0F , 2.0F ).maxBy { it.toString() } })
378
- expect(3.0 , { doubleArrayOf(2.0 , 3.0 ).maxBy { Math .sqrt(it) } })
378
+ expect(3.0 , { doubleArrayOf(2.0 , 3.0 ).maxBy { it * it } })
379
379
}
380
380
381
381
@Test fun minIndex () {
You can’t perform that action at this time.
0 commit comments