We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 088bb3e commit 1ae5f7dCopy full SHA for 1ae5f7d
inst/tests/tests.Rraw
@@ -21444,7 +21444,9 @@ test(2331.3, local({
21444
test(2331.4, local({
21445
cycle <- list()
21446
cycle[[1]] <- cycle
21447
- cycle[[2]] <- data.table(x = 1)
+ cycle[[2]] <- list(cycle) # deeper nesting to increase chance of second encounter
21448
+ cycle[[3]] <- data.table(x = 1)
21449
res <- tables(recursive = TRUE)$NAME
- "cycle[[2]]" %in% res && !"cycle[[1]]" %in% res
21450
+ "cycle[[3]]" %in% res && all(!grepl("cycle\\[\\[1\\]\\]", res)) && all(!grepl("cycle\\[\\[2\\]", res))
21451
}))
21452
+
0 commit comments