From f743a6b236d0adb05f0c904e7e3e4d4a3885065b Mon Sep 17 00:00:00 2001 From: jangorecki Date: Tue, 6 Aug 2019 16:40:15 +0200 Subject: [PATCH] unit tests foralready resolved issue, closes #3334 --- NEWS.md | 2 ++ inst/tests/tests.Rraw | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index 0302077080..f6d64cb462 100644 --- a/NEWS.md +++ b/NEWS.md @@ -220,6 +220,8 @@ 24. `column not found` could incorrectly occur in rare non-equi-join cases, [#3635](https://github.com/Rdatatable/data.table/issues/3635). Thanks to @UweBlock for the report. +25. Column binding of zero column `data.table` will now work as expected, [#3334](https://github.com/Rdatatable/data.table/issues/3334). Thanks to @kzenstratus for the report. + #### NOTES 1. `rbindlist`'s `use.names="check"` now emits its message for automatic column names (`"V[0-9]+"`) too, [#3484](https://github.com/Rdatatable/data.table/pull/3484). See news item 5 of v1.12.2 below. diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index ddecbf312c..abb1db6d41 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -15509,6 +15509,10 @@ test(2072.066, fifelse(c(TRUE, TRUE, TRUE, FALSE, NA, FALSE), factor(letters[1:6 test(2072.067, fifelse(c(TRUE, NA, TRUE, FALSE, FALSE, FALSE), factor(NA), factor(NA)), factor(c(NA,NA,NA,NA,NA,NA))) +# cbind 0 cols #3334 +test(2073.01, data.table(data.table(a=1), data.table()), data.table(data.table(a=1))) + + ################################### # Add new tests above this line # ###################################