Skip to content

Commit

Permalink
There may be warnings when writing categoricals
Browse files Browse the repository at this point in the history
  • Loading branch information
LouiseDck committed Nov 30, 2023
1 parent baa7448 commit 46893a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-HDF5-write.R
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ test_that("Writing H5AD string arrays works", {
test_that("Writing H5AD categoricals works", {
categorical <- factor(LETTERS[1:5])

expect_silent(write_h5ad_element(categorical, h5ad_file, "categorical"))
expect_no_error(write_h5ad_element(categorical, h5ad_file, "categorical"))
expect_true(hdf5_path_exists(h5ad_file, "/categorical"))
expect_true(hdf5_path_exists(h5ad_file, "/categorical/categories"))
expect_true(hdf5_path_exists(h5ad_file, "/categorical/codes"))
Expand Down

0 comments on commit 46893a0

Please sign in to comment.