Skip to content

Commit

Permalink
Fix warnings from Pkg.test on v0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dmbates committed Dec 4, 2017
1 parent d7f285a commit 4639ae0
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modelmatrix.jl
Original file line number Diff line number Diff line change
@@ -93,7 +93,7 @@ function droprandomeffects(trms::Terms)
if !any(retrms) # return trms unchanged
trms
elseif all(retrms) && !trms.response # return an empty Terms object
Terms(Any[],Any[],Array(Bool, (0,0)),Array(Bool, (0,0)), Int[], false, trms.intercept)
Terms(Any[],Any[],Array{Bool}((0,0)),Array{Bool}((0,0)), Int[], false, trms.intercept)
else
# the rows of `trms.factors` correspond to `eterms`, the columns to `terms`
# After dropping random-effects terms we drop any eterms whose rows are all false
2 changes: 1 addition & 1 deletion test/modelmatrix.jl
Original file line number Diff line number Diff line change
@@ -441,7 +441,7 @@ mf = ModelFrame(@formula(y ~ 1 + (1 | x)), df)

mf = ModelFrame(@formula(y ~ 0 + (1 | x)), df)
@test_throws ErrorException ModelMatrix(mf)
@test coefnames(mf) == Vector{Compat.UTF8String}()
@test coefnames(mf) == Vector{String}()


# Ensure X is not a view on df column

0 comments on commit 4639ae0

Please sign in to comment.