Skip to content

Commit

Permalink
Add CategoricalArrays dependancy in tests. Fix test failure in PR 102.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushpatnaikgit committed Nov 30, 2022
1 parent 5907fa8 commit 4b9c8c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[deps]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
1 change: 0 additions & 1 deletion test/mean.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
@test mean_vec_sym.sem[2] 27.36836524766856 atol = 1e-4
##############################
### Categorical Array - estimating proportions
using CategoricalArrays
apisrs_categ = copy(apisrs_original)
apisrs_categ.stype = CategoricalArray(apisrs_categ.stype) # Convert a column to CategoricalArray
srs_design_categ = SimpleRandomSample(apisrs_categ, popsize = :fpc)
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Survey
using Test
using CategoricalArrays

@testset "Survey.jl" begin
apiclus1 = load_data("apiclus1")
Expand Down

0 comments on commit 4b9c8c1

Please sign in to comment.