Skip to content

Commit b120387

Browse files
author
Pietro Vertechi
committed
Add tests
1 parent 0793515 commit b120387

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/StructArrays.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ include("interface.jl")
77
include("structarray.jl")
88
include("utils.jl")
99
include("collect.jl")
10+
include("sort.jl")
1011

1112
function __init__()
1213
Requires.@require Tables="bd369af6-aec1-5ad0-b16a-f7cc5008161c" include("tables.jl")

test/runtests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ end
2222
a = WeakRefStrings.StringVector(["a", "b", "c"])
2323
b = PooledArrays.PooledArray([1, 2, 3])
2424
c = [:a, :b, :c]
25+
@test StructArrays.isdiscrete(a)
26+
@test StructArrays.isdiscrete(b)
27+
@test !StructArrays.isdiscrete(c)
2528
s = StructArray(a=a, b=b, c=c)
2629
permute!(s, [2, 3, 1])
2730
@test s.a == ["b", "c", "a"]

0 commit comments

Comments
 (0)