Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix printing tests
  • Loading branch information
oxinabox committed Apr 14, 2021
commit 5dea9b9c9a3c47fad921383e99ceb579c150788c
3 changes: 1 addition & 2 deletions test/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ zdt = ZonedDateTime(dt, warsaw)
zdt_vector = [zdt]
@test sprint(show, MIME("text/plain"), zdt_vector) == summary(zdt_vector) * ":\n 1942-12-25T01:23:45+01:00"

prefix = VERSION >= v"1.5.0-DEV.224" ? "" : "ZonedDateTime"
@test sprint(show, zdt_vector; context=:compact => true) == "$prefix[ZonedDateTime(1942, 12, 25, 1, 23, 45, tz\"Europe/Warsaw\")]"
@test sprint(show, zdt_vector; context=:compact => true) == "ZonedDateTime{VariableTimeZone}[ZonedDateTime(1942, 12, 25, 1, 23, 45, tz\"Europe/Warsaw\")]"


# TimeZone parsing
Expand Down