Skip to content

Commit

Permalink
[tests] update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin committed Aug 18, 2024
1 parent 31326ad commit 0dc8223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-save.R
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ test_that("write cells without data", {
expect_equal(exp, got)

sheet <- paste0(tmp_dir, "/xl/worksheets/sheet1.xml")
exp <- "<sheetData><row r=\"2\"><c r=\"B2\"/><c r=\"C2\"/></row><row r=\"3\"><c r=\"B3\"/><c r=\"C3\"/></row></sheetData>"
exp <- "<sheetData><row r=\"2\"/><row r=\"3\"/></sheetData>"
got <- xml_node(sheet, "worksheet", "sheetData")
expect_equal(exp, got)

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-write.R
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ test_that("writing na.strings = NULL works", {
write_xlsx(matrix(NA, 2, 2), tmp, na.strings = NULL)
wb <- wb_load(tmp)

exp <- ""
exp <- NA_character_
got <- unique(wb$worksheets[[1]]$sheet_data$cc$v[3:6])
expect_equal(exp, got)

Expand Down

0 comments on commit 0dc8223

Please sign in to comment.