Skip to content

Commit

Permalink
Update total.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
smishr authored Apr 10, 2023
1 parent 362c67d commit e552250
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/total.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,11 @@ end

# Test multiple domains passed at once
tot = total(:api00, [:stype,:cname], dclus1_boot)


#### Why doesnt this syntax produce domain estimates??
# Test that column specifiers from DataFrames make it through this pipeline
# These tests replicate what you see above...just with a different syntax.
tot = total(:api00, Survey.DataFrames.Cols(==(:cname)), dclus1_boot)
# tot = total(:api00, Survey.DataFrames.Cols(==(:cname)), dclus1_boot)
######## Above Survey.DataFrames.Cols(==(:cname)) syntax doesnt give domain estimates
# @test size(tot)[1] == apiclus1.cname |> unique |> length
# @test filter(:cname => ==("Los Angeles"), tot).total[1] ≈ 489980.87 rtol = STAT_TOL
Expand Down

0 comments on commit e552250

Please sign in to comment.