File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
tests/src/test/kotlin/org/jetbrains/kotlinx/dataframe/samples/api Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class Write : TestBase() {
54
54
csvStr shouldStartWith """
55
55
name;age;city;weight;isHappy
56
56
"{""firstName"":""Alice"",""lastName"":""Cooper""}";15;London;54;true
57
- """ .rejoinWithSystemLineSeparator( )
57
+ """ .trimIndent().lines().joinToString( System .lineSeparator() )
58
58
}
59
59
60
60
@Test
@@ -73,7 +73,7 @@ class Write : TestBase() {
73
73
"city": "London",
74
74
"weight": 54,
75
75
"isHappy": true
76
- """ .rejoinWithSystemLineSeparator ()
76
+ """ .trimIndent ()
77
77
}
78
78
79
79
@Test
@@ -215,7 +215,7 @@ class Write : TestBase() {
215
215
// Specify mismatch subscriber
216
216
mismatchSubscriber = writeMismatchMessage,
217
217
218
- ).use { writer: ArrowWriter ->
218
+ ).use { writer: ArrowWriter ->
219
219
220
220
// Save to any format and sink, like in the previous example
221
221
writer.writeArrowFeather(file)
@@ -241,10 +241,6 @@ class Write : TestBase() {
241
241
}
242
242
243
243
companion object {
244
- private fun String.rejoinWithSystemLineSeparator () = rejoinWithLineSeparator(System .lineSeparator())
245
-
246
- private fun String.rejoinWithLineSeparator (separator : String ) = trimIndent().lines().joinToString(separator)
247
-
248
244
private fun useTempFile (action : (File ) -> Unit ) {
249
245
val file = kotlin.io.path.createTempFile(" dataframeWriteTest" )
250
246
action(file.toFile())
You can’t perform that action at this time.
0 commit comments