Skip to content

Commit

Permalink
Update tests.Rraw
Browse files Browse the repository at this point in the history
unit test added
#3638 (comment)
  • Loading branch information
ajdamico committed Jun 12, 2019
1 parent 30b0e8b commit d064de2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -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 #
###################################
Expand Down

0 comments on commit d064de2

Please sign in to comment.