Skip to content

Commit e14d93c

Browse files
incorrect tests fixed
1 parent 294f2bf commit e14d93c

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
@@ -21019,13 +21019,13 @@ DT$L[2L] = list(NULL)
2101921019
test(2304.091, DT, ans)
2102021020
DT = data.table(L=list("A", "B"), i=1L)
2102121021
# standard form with := operator
21022-
test(2304.092, copy(DT)[2L, L := list(NULL)], ans)
21022+
test(2304.092, copy(DT)[2L, L := list(list(NULL))], ans)
2102321023
# functional form with := operator
2102421024
test(2304.093, copy(DT)[2L, `:=`(L=list(NULL))], ans)
2102521025
# functional form with 'let' alias
2102621026
test(2304.094, copy(DT)[2L, let(L=list(NULL))], ans)
2102721027
# using set()
21028-
test(2304.095, set(copy(DT), i=2L, j="L", value=list(NULL)), ans)
21028+
test(2304.095, set(copy(DT), i=2L, j="L", value=list(list(NULL))), ans)
2102921029

2103021030
# sub-assignment of multiple list columns with list(NULL) in a multi-row data.table, using different assignment methods
2103121031
DT = data.table(L1=list("A", "B"), L2=list("B", "C"), i=1L)

0 commit comments

Comments
 (0)