@@ -160,7 +160,7 @@ class MoveTests {
160
160
df.move(" 2" ).before(" 1" ) shouldBe dataFrameOf(" 2" , " 1" )(2 , 1 )
161
161
}
162
162
}
163
-
163
+
164
164
@Test
165
165
fun `move before in nested structure` () {
166
166
val df = grouped.move { " a" [" b" ] }
@@ -201,23 +201,23 @@ class MoveTests {
201
201
// Simple case: direct parent-child relationship
202
202
shouldThrow<IllegalArgumentException > {
203
203
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'"
205
205
206
206
// Nested case: deeper parent-child relationship
207
207
shouldThrow<IllegalArgumentException > {
208
208
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'"
210
210
211
211
// Group case: moving group after its nested column
212
212
shouldThrow<IllegalArgumentException > {
213
213
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'"
215
215
}
216
216
217
217
@Test
218
218
fun `should throw when moving column before itself` () {
219
219
shouldThrow<IllegalArgumentException > {
220
220
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'"
222
222
}
223
223
}
0 commit comments