Remove obsolete and not relevant to stdlib tests
This commit is contained in:
@@ -15,7 +15,7 @@ class IOStreamsTest {
|
||||
} finally {
|
||||
writer?.close()
|
||||
}
|
||||
var act: String?
|
||||
val act: String?
|
||||
var reader: BufferedReader? = null
|
||||
try {
|
||||
reader = tmpFile.inputStream().reader().buffered()
|
||||
@@ -25,4 +25,18 @@ class IOStreamsTest {
|
||||
}
|
||||
assertEquals("Hello, World!", act)
|
||||
}
|
||||
|
||||
@test fun testInputStreamIterator() {
|
||||
val x = ByteArray(10) { it.toByte() }
|
||||
|
||||
val result = mutableListOf<Byte>()
|
||||
|
||||
x.inputStream().buffered().use { stream ->
|
||||
for(b in stream) {
|
||||
result += b
|
||||
}
|
||||
}
|
||||
|
||||
assertEquals(x.asList(), result)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user