Skip to content

Commit

Permalink
Fix show tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Sep 21, 2023
1 parent 1d7fa1a commit b26306e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/shows.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,18 @@
end

@testset "Filter" begin
func = row -> row.c 2 && row.e > 4
T = Filter(func)
pred = row -> row.c 2 && row.e > 4
T = Filter(pred)

# compact mode
iostr = sprint(show, T)
@test iostr == "Filter($(typeof(func))())"
@test iostr == "Filter($(typeof(pred))())"

# full mode
iostr = sprint(show, MIME("text/plain"), T)
@test iostr == """
Filter transform
└─ func = $(typeof(func))()"""
└─ pred = $(typeof(pred))()"""
end

@testset "DropMissing" begin
Expand Down

0 comments on commit b26306e

Please sign in to comment.