Skip to content

Commit

Permalink
New test of row.names issue for moving setalloccol up
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Sep 29, 2024
1 parent 73add71 commit ae0fc5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit ae0fc5f

Please sign in to comment.