Skip to content

Commit

Permalink
Fix test bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Dec 19, 2017
1 parent 44d81ae commit 7868be0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ NamedTuples 3.0.2
Requires 0.4.3
Documenter 0.9.0
IterableTables 0.5.0
DataValues 0.0.2
DataValues 0.3.1
MacroTools 0.3.7
QueryOperators 0.0.1
10 changes: 5 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ q = @from i in source_df begin
@collect
end

@test isa(q, Array{DataValue{String},1})
@test isa(q, DataValueArray{String,1})
@test length(q)==3
@test q==["john", "sally", "kirk"]

Expand All @@ -199,7 +199,7 @@ q = @from i in source_df begin
@collect
end

@test isa(q, Array{DataValue{String},1})
@test isa(q, DataValueArray{String,1})
@test length(q)==3
@test q==["kirk", "sally", "john"]

Expand All @@ -209,7 +209,7 @@ q = @from i in source_df begin
@collect
end

@test isa(q, Array{DataValue{String},1})
@test isa(q, DataValueArray{String,1})
@test length(q)==3
@test q==["john", "sally", "kirk"]

Expand Down Expand Up @@ -237,7 +237,7 @@ q = @from i in source_df begin
@collect
end

@test isa(q, Array{DataValue{Int},1})
@test isa(q, DataValueArray{Int,1})
@test length(q)==2
@test q[1]==4
@test q[2]==3
Expand Down Expand Up @@ -459,7 +459,7 @@ q = @from i in Feather.Source(joinpath(Pkg.dir("Feather"),"test", "newdata", "ai
@collect
end

@test isa(q, Array{Query.DataValue{Int32},1})
@test isa(q, DataValueArray{Int32,1})
@test q==[5,6,7,8,9]

source_df_nulls = DataFrame(name=@data(["John", "Sally", NA, "Kirk"]), age=[23., 42., 54., 59.], children=@data([3,NA,8,2]))
Expand Down

0 comments on commit 7868be0

Please sign in to comment.