From a4d999e877829b295ef5f73221c4c78c1fbc1844 Mon Sep 17 00:00:00 2001 From: Philipp A Date: Mon, 3 Apr 2023 14:20:33 +0200 Subject: [PATCH] =?UTF-8?q?Add=20test=20for=200=C3=97n=20dim=20matrices?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + tests/testthat/test_repr_array_df.r | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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))) +})