diff --git a/.gitignore b/.gitignore index 922c398..530eff9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ .RData repr.pdf .ipynb_checkpoints/ +testthat-problems.rds diff --git a/tests/testthat/test_repr_array_df.r b/tests/testthat/test_repr_array_df.r index 2b075c8..51c327b 100644 --- a/tests/testthat/test_repr_array_df.r +++ b/tests/testthat/test_repr_array_df.r @@ -159,4 +159,6 @@ test_that('reprs work on an 1d array', { succeed() }) - +test_that('0×n matrices are supported', { + expect_no_warning(repr_text(matrix(nrow = 0, ncol = 100))) +})