|
319 | 319 | ds = Dataset(x1 = ["A", "B,"], x2 =["TEA", "TOOOOL"])
|
320 | 320 | @test byrow(ds, join, r"x") == ["ATEA", "B,TOOOOL"]
|
321 | 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"] |
| 322 | + @test byrow(ds, join, r"x", last = ".") == ["A.TEA", "B,.TOOOOL"] |
| 323 | + @test byrow(ds, join, r"x", last = "end", delim = "/-/") == ["AendTEA", "B,endTOOOOL"] |
324 | 324 |
|
325 | 325 | @test byrow(view(ds, [1,2], :), join, r"x") == ["ATEA", "B,TOOOOL"]
|
326 | 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"] |
| 327 | + @test byrow(view(ds, [1,2], :), join, r"x", last = ".") == ["A.TEA", "B,.TOOOOL"] |
| 328 | + @test byrow(view(ds, [1,2], :), join, r"x", last = "end", delim = "/-/") == ["AendTEA", "B,endTOOOOL"] |
329 | 329 |
|
330 | 330 | repeat!(ds, 1000)
|
331 | 331 | @test byrow(ds, join, r"x", threads = true) == repeat(["ATEA", "B,TOOOOL"], 1000)
|
332 | 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) |
| 333 | + @test byrow(ds, join, r"x", threads = true, last = ".") == repeat(["A.TEA", "B,.TOOOOL"], 1000) |
| 334 | + @test byrow(ds, join, r"x", threads = true, last = "end", delim = "/-/") == repeat(["AendTEA", "B,endTOOOOL"], 1000) |
| 335 | + |
| 336 | + ds = Dataset(x = [1,10], x2 = ["A", "BC"], x3 = [2.0,4.54]) |
| 337 | + @test byrow(ds, join, :, delim = "--", last = "-") == ["1--A-2.0", "10--BC-4.54"] |
335 | 338 | end
|
336 | 339 |
|
337 | 340 | @testset "cum*/! - sort/!" begin
|
|
0 commit comments