Skip to content

Commit 621d5f5

Browse files
committed
add tests for numeric assignment
1 parent 74dded2 commit 621d5f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inst/tests/tests.Rraw

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,8 +1409,11 @@ test(438.1, truelength(DT), tl)
14091409
DT[,"bar"] = 8L
14101410
test(438.2, truelength(DT), tl+2L)
14111411
# also allow DT[[...]]= syntax #6734
1412-
DT[["baz"]] = 9L
1412+
DT[["baz"]] = 1L
14131413
test(438.3, truelength(DT), tl+2L)
1414+
test(483.4, DT$baz, c(1L,1L,1L))
1415+
DT[[5]] = 9L
1416+
test(438.5, truelength(DT), tl+3L)
14141417
DT[[1,"qux"]] = 10L
14151418
test(438.4, truelength(DT), tl+3L)
14161419
test(438.5, DT, data.table(a=1:3,b=4:6,foo=7L,bar=8L,baz=9L,qux=c(10L,NA_integer_,NA_integer_)))

0 commit comments

Comments
 (0)