From d064de2a997285fe29ca3662429e03170deb24fa Mon Sep 17 00:00:00 2001 From: Anthony Damico Date: Wed, 12 Jun 2019 07:00:20 -0400 Subject: [PATCH] Update tests.Rraw unit test added https://github.com/Rdatatable/data.table/pull/3638#issuecomment-501099965 --- inst/tests/tests.Rraw | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index ea6107383..563fcc1bc 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -14978,6 +14978,15 @@ test(2054, DT[order(C)[1:5], B, verbose=TRUE], c('b', 'b', 'c', 'c', 'a'), output = 'order optimisation is on') +# rbindlist improved error message, #3638 +DT = data.table(a = 1) +test(2055.1, rbindlist(list(DT,1)), error="Item 2 of input is not a data.frame, data.table or list") +test(2055.2, rbindlist(DT), error="Input is not a list") + + + + + ################################### # Add new tests above this line # ###################################