Remove obsolete and not relevant to stdlib tests

This commit is contained in:
Ilya Gorbunov
2016-06-15 21:35:15 +03:00
parent 43407f1c74
commit d266f546f4
11 changed files with 15 additions and 228 deletions
+15 -1
View File
@@ -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)
}
}