Skip to content

Commit 0202f7b

Browse files
cleaning + ran ktlint format
1 parent a44b15a commit 0202f7b

File tree

1 file changed

+5
-5
lines changed
  • core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/api

1 file changed

+5
-5
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/api/move.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class MoveTests {
160160
df.move("2").before("1") shouldBe dataFrameOf("2", "1")(2, 1)
161161
}
162162
}
163-
163+
164164
@Test
165165
fun `move before in nested structure`() {
166166
val df = grouped.move { "a"["b"] }
@@ -201,23 +201,23 @@ class MoveTests {
201201
// Simple case: direct parent-child relationship
202202
shouldThrow<IllegalArgumentException> {
203203
grouped.move("a").before { "a"["b"] }
204-
}.message shouldBe "Cannot move column 'a' after its own child column 'a/b'"
204+
}.message shouldBe "Cannot move column 'a' before its own child column 'a/b'"
205205

206206
// Nested case: deeper parent-child relationship
207207
shouldThrow<IllegalArgumentException> {
208208
grouped.move("a").before { "a"["c"]["d"] }
209-
}.message shouldBe "Cannot move column 'a' after its own child column 'a/c/d'"
209+
}.message shouldBe "Cannot move column 'a' before its own child column 'a/c/d'"
210210

211211
// Group case: moving group after its nested column
212212
shouldThrow<IllegalArgumentException> {
213213
grouped.move { "a"["c"] }.before { "a"["c"]["d"] }
214-
}.message shouldBe "Cannot move column 'a/c' after its own child column 'a/c/d'"
214+
}.message shouldBe "Cannot move column 'a/c' before its own child column 'a/c/d'"
215215
}
216216

217217
@Test
218218
fun `should throw when moving column before itself`() {
219219
shouldThrow<IllegalArgumentException> {
220220
grouped.move { "a"["b"] }.before { "a"["b"] }
221-
}.message shouldBe "Cannot move column 'a/b' after its own child column 'a/b'"
221+
}.message shouldBe "Cannot move column 'a/b' before its own child column 'a/b'"
222222
}
223223
}

0 commit comments

Comments
 (0)