Skip to content

Commit 1ae5f7d

Browse files
committed
updated tes
1 parent 088bb3e commit 1ae5f7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

inst/tests/tests.Rraw

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21444,7 +21444,9 @@ test(2331.3, local({
2144421444
test(2331.4, local({
2144521445
cycle <- list()
2144621446
cycle[[1]] <- cycle
21447-
cycle[[2]] <- data.table(x = 1)
21447+
cycle[[2]] <- list(cycle) # deeper nesting to increase chance of second encounter
21448+
cycle[[3]] <- data.table(x = 1)
2144821449
res <- tables(recursive = TRUE)$NAME
21449-
"cycle[[2]]" %in% res && !"cycle[[1]]" %in% res
21450+
"cycle[[3]]" %in% res && all(!grepl("cycle\\[\\[1\\]\\]", res)) && all(!grepl("cycle\\[\\[2\\]", res))
2145021451
}))
21452+

0 commit comments

Comments
 (0)