Skip to content

Commit 55c8038

Browse files
authored
Fix #207 (#208)
1 parent 7068815 commit 55c8038

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ notes.R
2424
^revdep$
2525
^LICENSE.note$
2626
^.editorconfig$
27+
^tests/testdata/issue81.ods$

NEWS.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# readODS 2.3.2
2+
3+
* Fix #207, trim off large or unused test files
4+
15
# readODS 2.3.1
26

37
* Undo #173, use `cpp11` like 2.2.0

tests/testdata/layout_test.xls

-14 KB
Binary file not shown.

tests/testdata/layout_test.xlsx

-8.39 KB
Binary file not shown.

tests/testthat/test_issue81.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ test_that("issue 81, correctness", {
1111
})
1212

1313
test_that("issue 81 real test", {
14+
skip_if(!file.exists("../testdata/issue81.ods"))
1415
file <- "../testdata/issue81.ods"
1516
res <- read_ods(file, sheet = 2, skip = 4, as_tibble = FALSE)
1617
expect_equal(sum(is.na(res[,1])), 0)
1718
})
1819

1920
test_that("issue 84", {
21+
skip_if(!file.exists("../testdata/issue81.ods"))
2022
file <- "../testdata/issue81.ods"
2123
expect_error(read_ods(file, sheet = "Leavers"), NA)
22-
})
24+
})

0 commit comments

Comments
 (0)