Fix String.toHashSet tests
This commit is contained in:
@@ -1655,7 +1655,7 @@ ${" "}
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun toHashSet() {
|
fun toHashSet() {
|
||||||
compare(hashSetOf('A', 'B', 'C'), "ACAABBAC".toHashSet()) { setBehavior() }
|
assertEquals(hashSetOf('A', 'B', 'C'), "ACAABBAC".toHashSet())
|
||||||
|
|
||||||
buildString {
|
buildString {
|
||||||
repeat(100) { append('1') }
|
repeat(100) { append('1') }
|
||||||
@@ -1664,7 +1664,7 @@ ${" "}
|
|||||||
append('4')
|
append('4')
|
||||||
repeat(100) { append('5') }
|
repeat(100) { append('5') }
|
||||||
}.let {
|
}.let {
|
||||||
compare(hashSetOf('1', '2', '3', '4', '5'), it.toHashSet()) { setBehavior() }
|
assertEquals(hashSetOf('1', '2', '3', '4', '5'), it.toHashSet())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user