Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 588d04f

Browse files
committed
Convert test for DataArray{Any, 1}
1 parent 81520a4 commit 588d04f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/data.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module TestData
1818
dvflt = @data [1.0, 2, NA, 4]
1919
dvstr = @data ["one", "two", NA, "four"]
2020
dvdict = DataArray(Dict, 4) # for issue #199
21+
dvany = convert(DataArray{Any, 1}, dvint)
2122

2223
@assert isa(dvint, DataVector{Int})
2324
@assert isa(dvint2, DataVector{Int})
@@ -95,6 +96,7 @@ module TestData
9596
#test_group("DataVector to something else")
9697
@assert all(dropna(dvint) .== [1, 2, 4])
9798
@assert all(convert(Vector, dvint, 0) .== [1, 2, 0, 4])
99+
@assert all(convert(Vector, dvany, 0) .== [1, 2, 0, 4])
98100
utf8three = convert(UTF8String, "three")
99101
asciithree = convert(ASCIIString, "three")
100102
@assert all(convert(Vector, dvstr, utf8three) .== ["one", "two", "three", "four"])

0 commit comments

Comments
 (0)