Skip to content

Commit b0f41d5

Browse files
committed
Better test for not printing NULL
1 parent dfb67d9 commit b0f41d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11653,8 +11653,7 @@ test(1765.4, {warning("foobar1"); warning("foobar2"); warning("FOO"); 4L}, 4L, i
1165311653
test(1765.5, {warning("foobar1"); warning("foobar2"); warning("FOO"); 4L}, 4L, ignore.warning="2", warning=c("foobar1","FOO"))
1165411654

1165511655
# print(null.data.table()) should not output NULL as well, #1852
11656-
# the ^, $ specifiers don't match embedded newlines (if any) so match will fail if NULL is also printed
11657-
test(1766, data.table(NULL), output = "^Null data\\.table \\(0 rows and 0 cols\\)$")
11656+
test(1766, data.table(NULL), notOutput = "NULL$")
1165811657

1165911658
# Bug on subset of 1-row data.table when expr returns a named logical vector #2152
1166011659
options(datatable.auto.index=FALSE)

0 commit comments

Comments
 (0)