JS: add tests to make sure KT-22019 is fixed

This commit is contained in:
Anton Bannykh
2018-02-28 16:05:26 +03:00
committed by Anton Bannykh
parent a5ac8abc7c
commit fd244be9ca
2 changed files with 12 additions and 1 deletions
@@ -1191,7 +1191,8 @@ class ArraysTest {
checkSorted<ByteArray>( { sortedArray() }, { sortedArrayDescending() }, { iterator() })
}
with(arrayData(Double.POSITIVE_INFINITY, 1.0, Double.MAX_VALUE) { toDoubleArray() }) {
with(arrayData(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, Double.MAX_VALUE, -Double.MAX_VALUE,
1.0, -1.0, Double.MIN_VALUE, -Double.MIN_VALUE, 0.0, -0.0, Double.NaN) { toDoubleArray() }) {
checkSorted<List<Double>>( { sorted() }, { sortedDescending() }, { iterator() })
checkSorted<DoubleArray>( { sortedArray() }, { sortedArrayDescending() }, { iterator() })
}