Skip to content

Commit d758eee

Browse files
more updated error expectations
1 parent a1ca991 commit d758eee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/tests/mergelist.Rraw

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ test(11.05, cbindlist(list(data.table(a=1L), data.table(), data.table(d=2L), dat
3131
test(12.01, cbindlist(data.frame(a=1L), data.frame(b=1L)), error="must be a list")
3232
test(12.02, cbindlist(TRUE, FALSE), error="must be a list")
3333
test(12.03, cbindlist(list(), NA), error="must be TRUE or FALSE")
34-
test(12.04, cbindlist(list(data.table(a=1L), 1L)), error="is not of data.table type")
34+
test(12.04, cbindlist(list(data.table(a=1L), 1L)), error="is not a data.table")
3535
test(12.05, options = c(datatable.verbose=TRUE), cbindlist(list(data.table(a=1:2), data.table(b=1:2))), data.table(a=1:2, b=1:2), output="cbindlist.*took")
3636
test(12.06, cbindlist(list(data.table(), data.table(a=1:2), data.table(b=1:2))), data.table(a=1:2, b=1:2))
3737
test(12.07, cbindlist(list(data.table(), data.table(a=1:2), list(b=1:2))), data.table(a=1:2, b=1:2))
@@ -49,8 +49,8 @@ test(12.12, cbind(data.table(x=integer()), data.table(a=1:2)), data.table(x=c(NA
4949
test(12.13, cbind(data.table(x=1L), data.table(a=1:2)), data.table(x=c(1L, 1L), a=1:2))
5050
test(12.14, cbindlist(list(data.table(a=integer()), data.table(b=1:2))), error="Recycling.*not yet implemented")
5151
test(12.15, cbindlist(list(data.table(a=1L), data.table(b=1:2))), error="Recycling.*not yet implemented")
52-
test(12.16, cbindlist(list(data.table(a=integer()), data.table(b=1:2)), copy=FALSE), error="has to have equal nrow")
53-
test(12.17, cbindlist(list(data.table(a=1L), data.table(b=1:2)), copy=FALSE), error="has to have equal nrow")
52+
test(12.16, cbindlist(list(data.table(a=integer()), data.table(b=1:2)), copy=FALSE), error="have to have the same number of rows")
53+
test(12.17, cbindlist(list(data.table(a=1L), data.table(b=1:2)), copy=FALSE), error="have to have the same number of rows")
5454

5555
## retain indices
5656
local({

0 commit comments

Comments
 (0)