Skip to content

Commit

Permalink
fix soft scope warning in tests (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Apr 4, 2024
1 parent e3a9b24 commit 3279892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/convert/categorical.jl
Expand Up @@ -2,7 +2,7 @@ using CategoricalArrays

# CategoricalArrays
for ord in (true, false)
v = CategoricalArray(repeat(["b", "a"], inner = 5), ordered=ord)
local v = CategoricalArray(repeat(["b", "a"], inner = 5), ordered=ord)
v2 = rcopy(CategoricalArray, RObject(v))
@test isequal(v2, v)
@test v2 isa CategoricalVector{String}
Expand All @@ -16,7 +16,7 @@ end
a = Array{Union{String, Missing}}(repeat(["b", "a"], inner = 5))
a[repeat([true, false], outer = 5)] .= missing
for ord in (true, false)
v = CategoricalArray(a, ordered=ord)
local v = CategoricalArray(a, ordered=ord)
v2 = rcopy(CategoricalArray, RObject(v))
@test isequal(v2, v)
@test v2 isa CategoricalVector{Union{String,Missing}}
Expand Down

0 comments on commit 3279892

Please sign in to comment.