|
315 | 315 | @test byrow(sds2, in, 1:2, item = :x3) == [1,1,1,0,1]
|
316 | 316 | @test byrow(sds2, in, 1:2, item = sds2[!, 3])== [1,1,1,0,1]
|
317 | 317 | @test byrow(sds2, in, 1:2, item = sds2[:, 3])== [1,1,1,0,1]
|
| 318 | + |
| 319 | + ds = Dataset(x1 = ["A", "B,"], x2 =["TEA", "TOOOOL"]) |
| 320 | + @test byrow(ds, join, r"x") == ["ATEA", "B,TOOOOL"] |
| 321 | + @test byrow(ds, join, r"x", delim = ",") == ["A,TEA", "B,,TOOOOL"] |
| 322 | + @test byrow(ds, join, r"x", last = ".") == ["ATEA.", "B,TOOOOL."] |
| 323 | + @test byrow(ds, join, r"x", last = "end", delim = "/-/") == ["A/-/TEAend", "B,/-/TOOOOLend"] |
| 324 | + |
| 325 | + @test byrow(view(ds, [1,2], :), join, r"x") == ["ATEA", "B,TOOOOL"] |
| 326 | + @test byrow(view(ds, [1,2], :), join, r"x", delim = ",") == ["A,TEA", "B,,TOOOOL"] |
| 327 | + @test byrow(view(ds, [1,2], :), join, r"x", last = ".") == ["ATEA.", "B,TOOOOL."] |
| 328 | + @test byrow(view(ds, [1,2], :), join, r"x", last = "end", delim = "/-/") == ["A/-/TEAend", "B,/-/TOOOOLend"] |
| 329 | + |
| 330 | + repeat!(ds, 1000) |
| 331 | + @test byrow(ds, join, r"x", threads = true) == repeat(["ATEA", "B,TOOOOL"], 1000) |
| 332 | + @test byrow(ds, join, r"x", threads = true, delim = ",") == repeat(["A,TEA", "B,,TOOOOL"], 1000) |
| 333 | + @test byrow(ds, join, r"x", threads = true, last = ".") == repeat(["ATEA.", "B,TOOOOL."], 1000) |
| 334 | + @test byrow(ds, join, r"x", threads = true, last = "end", delim = "/-/") == repeat(["A/-/TEAend", "B,/-/TOOOOLend"], 1000) |
318 | 335 | end
|
319 | 336 |
|
320 | 337 | @testset "cum*/! - sort/!" begin
|
|
0 commit comments