We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0793515 commit b120387Copy full SHA for b120387
src/StructArrays.jl
@@ -7,6 +7,7 @@ include("interface.jl")
7
include("structarray.jl")
8
include("utils.jl")
9
include("collect.jl")
10
+include("sort.jl")
11
12
function __init__()
13
Requires.@require Tables="bd369af6-aec1-5ad0-b16a-f7cc5008161c" include("tables.jl")
test/runtests.jl
@@ -22,6 +22,9 @@ end
22
a = WeakRefStrings.StringVector(["a", "b", "c"])
23
b = PooledArrays.PooledArray([1, 2, 3])
24
c = [:a, :b, :c]
25
+ @test StructArrays.isdiscrete(a)
26
+ @test StructArrays.isdiscrete(b)
27
+ @test !StructArrays.isdiscrete(c)
28
s = StructArray(a=a, b=b, c=c)
29
permute!(s, [2, 3, 1])
30
@test s.a == ["b", "c", "a"]
0 commit comments