Skip to content

Commit

Permalink
Fix tests for #400 (#401)
Browse files Browse the repository at this point in the history
* fix

* progress

* add news and modify project.toml

* fix tests
  • Loading branch information
pdeffebach authored Jul 16, 2024
1 parent 148da7b commit 7ea2e2d
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 7ea2e2d

Please sign in to comment.