Skip to content

Commit 097cd31

Browse files
committed
Test conversion to Vector{Any}
1 parent c49c648 commit 097cd31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unittests.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ end
444444
x = [0.5, 0.5u"km/s"]
445445
@test x isa Vector{Number}
446446

447+
x = [0.5, GenericQuantity(0.5u"km/s")]
448+
@test x isa Vector{Any}
449+
447450
# Explicit conversion so coverage can see it:
448451
D = DEFAULT_DIM_TYPE
449452
@test promote_type(Quantity{Float32,D}, Float64) == Number

0 commit comments

Comments
 (0)