Skip to content

Commit

Permalink
IDateTime test fixed to pass when run in Europe time zone (win-builde…
Browse files Browse the repository at this point in the history
…r). #1973
  • Loading branch information
mattdowle committed Sep 23, 2017
1 parent 43bd49b commit 34fe00d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -10226,9 +10226,9 @@ test(1764.1, format(as.ITime(character(0))), character(0))
test(1764.2, format(structure(NA_integer_, class = "ITime")), NA_character_)

# IDateTime error when tzone is NULL, #1973
x = as.POSIXct('2017-03-17')
x = as.POSIXct('2017-03-17', tz="UTC")
attr(x, 'tzone') = NULL
test(1765, print(IDateTime(x)), output=".*idate.*itime.*1: 2017-03-17 00:00:00")
test(1765, print(IDateTime(x)), output=".*idate.*itime.*1: 2017-03-17")

# print(null.data.table()) should not output NULL as well, #1852
# use capture.output() in this case rather than output= to ensure NULL is not output
Expand Down

0 comments on commit 34fe00d

Please sign in to comment.