Skip to content

Commit

Permalink
try to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Oct 18, 2023
1 parent 55a8358 commit d53f912
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions tests/testthat/_snaps/csv.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,11 +423,10 @@
cat(readLines(path), sep = "\n")
Output
date
22h00m00s
22h15m00s
22h30m00s
22h45m00s
23h00m00s
00h00m00s
08h00m00s
16h00m00s
00h00m00s

# write_csv: float_precision works

Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ test_that("write_csv: datetime_format works", {
test_that("write_csv: time_format works", {
dat <- pl$DataFrame(
date = pl$date_range(
strptime("00:00:00", format = "%H:%M:%S"),
strptime("01:00:00", format = "%H:%M:%S"),
interval = "15m",
as.Date("2020-10-17"),
as.Date("2020-10-18"),
"8h",
eager = TRUE
)
)$with_columns(pl$col("date")$dt$time())
Expand Down

0 comments on commit d53f912

Please sign in to comment.