Skip to content

Commit 1f35d81

Browse files
committed
add more tests
1 parent 87a8da1 commit 1f35d81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/arrays.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,12 @@ _skip(v) = collect(skipmissing(v))
171171
end
172172

173173
## Check that the appropriate errors are thrown
174-
v1 = categorical([v0[1:end-1];"strange_level"])
174+
v1 = categorical([v0[1:end-1]...;"strange_level"])
175175
v2 = [v0...;rand(rng, v0)] #length(u) !== length(v2)
176+
v3 = categorical([vm[end:-1:begin+1]...;"strange_level"])
176177
@test_throws DimensionMismatch broadcast(pdf, u, v2)
177178
@test_throws DomainError broadcast(pdf, u, v1)
179+
@test_throws DomainError broadcast(pdf, u, v3)
178180

179181
end
180182

0 commit comments

Comments
 (0)