|
224 | 224 |
|
225 | 225 | # throws: Select without arguments
|
226 | 226 | @test_throws ArgumentError Select()
|
227 |
| - @test_throws ArgumentError Select(()) |
228 |
| - |
| 227 | + |
229 | 228 | # throws: empty selection
|
| 229 | + @test_throws ArgumentError Select(()) |
| 230 | + @test_throws ArgumentError Select(Symbol[]) |
| 231 | + @test_throws ArgumentError Select(String[]) |
| 232 | + |
| 233 | + # throws: regex doesn't match any names in input table |
230 | 234 | @test_throws AssertionError apply(Select(r"a"), t)
|
231 |
| - @test_throws AssertionError Select(Symbol[]) |
232 |
| - @test_throws AssertionError Select(String[]) |
233 | 235 |
|
234 | 236 | # throws: columns that do not exist in the original table
|
235 | 237 | @test_throws AssertionError apply(Select(:x3, :y3), t)
|
@@ -372,19 +374,21 @@ end
|
372 | 374 |
|
373 | 375 | # throws: Reject without arguments
|
374 | 376 | @test_throws ArgumentError Reject()
|
| 377 | + |
| 378 | + # throws: empty rejection |
375 | 379 | @test_throws ArgumentError Reject(())
|
| 380 | + @test_throws ArgumentError Reject(Symbol[]) |
| 381 | + @test_throws ArgumentError Reject(String[]) |
376 | 382 |
|
377 |
| - # throws: empty rejection |
| 383 | + # throws: regex doesn't match any names in input table |
378 | 384 | @test_throws AssertionError apply(Reject(r"a"), t)
|
379 |
| - @test_throws AssertionError Reject(Symbol[]) |
380 |
| - @test_throws AssertionError Reject(String[]) |
381 | 385 |
|
382 | 386 | # throws: reject all columns
|
383 |
| - @test_throws AssertionError apply(Reject(r"[xy]"), t) |
384 |
| - @test_throws AssertionError apply(Reject(:x1, :x2, :y1, :y2), t) |
385 |
| - @test_throws AssertionError apply(Reject([:x1, :x2, :y1, :y2]), t) |
386 |
| - @test_throws AssertionError apply(Reject((:x1, :x2, :y1, :y2)), t) |
387 |
| - @test_throws AssertionError apply(Reject("x1", "x2", "y1", "y2"), t) |
388 |
| - @test_throws AssertionError apply(Reject(["x1", "x2", "y1", "y2"]), t) |
389 |
| - @test_throws AssertionError apply(Reject(["x1", "x2", "y1", "y2"]), t) |
| 387 | + @test_throws ArgumentError apply(Reject(r"[xy]"), t) |
| 388 | + @test_throws ArgumentError apply(Reject(:x1, :x2, :y1, :y2), t) |
| 389 | + @test_throws ArgumentError apply(Reject([:x1, :x2, :y1, :y2]), t) |
| 390 | + @test_throws ArgumentError apply(Reject((:x1, :x2, :y1, :y2)), t) |
| 391 | + @test_throws ArgumentError apply(Reject("x1", "x2", "y1", "y2"), t) |
| 392 | + @test_throws ArgumentError apply(Reject(["x1", "x2", "y1", "y2"]), t) |
| 393 | + @test_throws ArgumentError apply(Reject(["x1", "x2", "y1", "y2"]), t) |
390 | 394 | end
|
0 commit comments