Skip to content

Commit

Permalink
Update test failing on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
grimbough committed Nov 26, 2024
1 parent b9481a4 commit 6cec35c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions inst/tinytest/test_ZarrArray-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ expect_inherits(z1, class = "ZarrArray")

# getters
expect_equal(chunkdim(z1), chunk_dim)
## We use grepl here because Rarr appends a trailing slash to the path
## Not sure if we actually want to do that
expect_true(grepl(x = path(z1), pattern = tf1, fixed = TRUE))
## input and output path are not the same on all platforms e.g. Windows
## as we follow the Zarr spec rules for normalizing
expect_equal(path(z1), Rarr:::.normalize_array_path(tf1))
expect_equal(normalizePath(path(z1)), tf1)

# ways to get the array from disk to memory
expect_equal(extract_array(z1, index = list(NULL, NULL)), m)
Expand Down

0 comments on commit 6cec35c

Please sign in to comment.