Skip to content

Commit 0b82933

Browse files
author
Pietro Vertechi
authored
remove join iterator (#166)
* remove join iterator * remove useless code
1 parent ab8777d commit 0b82933

File tree

3 files changed

+0
-86
lines changed

3 files changed

+0
-86
lines changed

src/StructArrays.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ include("structarray.jl")
1111
include("utils.jl")
1212
include("collect.jl")
1313
include("sort.jl")
14-
include("groupjoin.jl")
1514
include("lazy.jl")
1615
include("tables.jl")
1716

src/groupjoin.jl

Lines changed: 0 additions & 65 deletions
This file was deleted.

test/runtests.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ end
9595
@test StructArrays.roweq(strs, 1, 2)
9696
@test !StructArrays.roweq(strs, 1, 3)
9797
@test !StructArrays.roweq(strs, 2, 3)
98-
99-
a = ["a", "c", "z", "a"]
100-
b = PooledArrays.PooledArray(["p", "y", "a", "x"])
101-
t = StructArray((a, b))
102-
@test StructArrays.rowcmp(s, 4, t, 4) == 0
103-
@test StructArrays.rowcmp(s, 1, t, 1) == 1
104-
@test StructArrays.rowcmp(s, 2, t, 3) == -1
10598
end
10699

107100
@testset "permute" begin
@@ -174,19 +167,6 @@ end
174167
@test u == [1, 2, 3]
175168
end
176169

177-
@testset "groupjoin" begin
178-
a = [1, 2, 1, 1, 0, 9, -100]
179-
b = [-2, 12, 1, 1, 0, 11, 9]
180-
itr = StructArrays.GroupJoinPerm(a, b)
181-
@test Base.IteratorSize(itr) == Base.SizeUnknown()
182-
@test Base.IteratorEltype(itr) == Base.HasEltype()
183-
@test eltype(itr) == Tuple{UnitRange{Int}, UnitRange{Int}}
184-
s = StructArray(itr)
185-
as, bs = fieldarrays(s)
186-
@test as == [1:1, 1:0, 2:2, 3:5, 6:6, 7:7, 1:0, 1:0]
187-
@test bs == [1:0, 1:1, 2:2, 3:4, 1:0, 5:5, 6:6, 7:7]
188-
end
189-
190170
@testset "similar" begin
191171
t = StructArray(a = rand(10), b = rand(Bool, 10))
192172
s = similar(t)

0 commit comments

Comments
 (0)