Use simplest way to split text to lines on all targets
Merge-request: KT-MR-8858 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
6bb71b44f6
commit
24696915f4
+1
-2
@@ -56,8 +56,7 @@ abstract class AbstractNativeKlibContentsTest : AbstractNativeSimpleTest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun filterContentsOutput(contents: String, linestoExclude: List<String>) =
|
private fun filterContentsOutput(contents: String, linestoExclude: List<String>) =
|
||||||
StringUtilRt.convertLineSeparators(contents)
|
contents.lines()
|
||||||
.split("\n")
|
|
||||||
.filterNot { line ->
|
.filterNot { line ->
|
||||||
linestoExclude.any { exclude -> exclude == line }
|
linestoExclude.any { exclude -> exclude == line }
|
||||||
}.joinToString(separator = "\n")
|
}.joinToString(separator = "\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user