Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeffebach committed Jul 16, 2024
1 parent bbe4ec2 commit 175823b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/keyword_arguments.jl
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,12 @@ end
end

@testset "Multiple arguments #399" begin
correct = df[df.a .== 1, :]
correct_view = view(df, df.a .== 1, :)
correct = df[df.a .== 1 .& isequal.(df.b, 3), :]
correct_view = view(df, df.a .== 1 .& isequal.(df.b, 3), :)

df2 = @subset(df, :a .== 1, :b .== 3; view = true)
@test df2 correct_view
@test df2 isa SubDataFrame

@test_throws ArgumentError @subset(df, :a .== 1, :b .== 3; skipmissing = false)
@test_throws ArgumentError @subset(df, :a .== 1, :b .== 3; skipmissing = false, view = true)
Expand Down

0 comments on commit 175823b

Please sign in to comment.