From ae0fc5fb81d6dbba13b85fdb21c6705d27d8f25b Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Sun, 29 Sep 2024 20:50:51 +0000 Subject: [PATCH] New test of row.names issue for moving setalloccol up --- inst/tests/tests.Rraw | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index 828b64685..f79bec0d7 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -20585,8 +20585,9 @@ test(2294.72, warning = "For the following variables, the 'label' value was already in the data: [VCharB (label: C3), VIntA (label: 2)]") # setDT no longer leaks class modification to origin copy, #4784 -d1 = data.frame(a=1) +d1 = data.frame(a=1, row.names='b') d2 = d1 setDT(d2) test(2295.1, !is.data.table(d1)) -test(2295.2, is.data.table(d2)) +test(2295.2, rownames(d1), 'b') +test(2295.3, is.data.table(d2))