Skip to content

Commit fc475f2

Browse files
committed
updagted test
1 parent 1c92bb1 commit fc475f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3997,9 +3997,9 @@ test(1133.8, DT[, new := if (.GRP==1L) 7L else 3.4, by=x], data.table(x=INT(1,1,
39973997
DT <- data.table(x=c("A", "A", "B", "B"), val =1:4)
39983998
DT2 <- copy(DT)[, a := 1L]
39993999
test(1134.1, DT[, {a := 1L}], DT2)
4000-
test(1134.2, DT[, {a := 1L; NULL}], error="You have wrapped.*which is ok.*Consider")
4000+
test(1134.2, DT[, {a := 1L; NULL}], error="Invalid use of `:=` inside `{}`")
40014001
test(1134.3, DT[, {b := 2L}, by=x], DT2[, b:=2L, by=x])
4002-
test(1134.4, DT[, {b := 2L; sum(val)}, by=x], error="You have wrapped.*which is ok.*Consider")
4002+
test(1134.4, DT[, {b := 2L; sum(val)}, by=x], error="Invalid use of `:=` inside `{}`")
40034003

40044004
# FR #2693 and Gabor's suggestions on datatable-help "Problem with FAQ 2.8"
40054005
d1 <- data.table(id1 = c(1L, 2L, 2L, 3L), val = 1:4, key = "id1")

0 commit comments

Comments
 (0)