Skip to content

Commit 186cbd5

Browse files
committed
corrected test case
1 parent ed5bdb1 commit 186cbd5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

inst/tests/tests.Rraw

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13554,11 +13554,8 @@ test(1962.019,
1355413554
test(1962.0201, merge(DT1, DT2, by=character(0L)), ans) # was error before PR#5183
1355513555
test(1962.0202, merge(DT1, DT2, by=NULL), ans) # test explicit NULL too as missing() could be used inside merge()
1355613556
test(1962.021, {
13557-
if (!"z" %in% colnames(DT1) || !"z" %in% colnames(DT2)) {
13558-
stop("The columns listed in `by` are missing from either x or y: [z]")
13559-
}
1356013557
merge(DT1, DT2, by = 'z')
13561-
}, error = 'The columns listed in `by` are missing from either x or y: [z]')
13558+
}, error = 'The following columns are missing:\n - From x: [z]\n - From y: [z]')
1356213559

1356313560
## frank.R
1356413561
x = c(1, 1, 2, 5, 4, 3, 4, NA, 6)

0 commit comments

Comments
 (0)