Skip to content

Commit 654247a

Browse files
committed
regression test
1 parent 3c044ce commit 654247a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21865,3 +21865,8 @@ text = paste0(
2186521865
strrep("a", 500), "\n", "a"
2186621866
)
2186721867
test(2346, data.table::fread(text = text), data.table(mary = rep("mary", 99), had = "had", a = "a", little = "little", lamb = "lamb"), warning = "First discarded non-empty line")
21868+
21869+
# With 'i' containing NA and no GForce, columns for missing groups weren't fully missing, #7442
21870+
DT = data.table(a="a", grp=1L)
21871+
i = c(1, 1, 1, NA, NA)
21872+
test(2347, DT[i, .(result = all(is.na(grp) == is.na(a))), by = grp][,all(result)], options = list(datatable.optimize = 0))

0 commit comments

Comments
 (0)