Skip to content

Commit

Permalink
Tweak test so that it would fail on master
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Jan 2, 2025
1 parent 87804e5 commit 8d2e958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/tests/S4.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ DF = new("DataFrame", x=data.frame(a=1))
setDT(DF@x)
test(7.1, is.data.table(DF@x))
setClass("DataTable", slots=c(x="data.table"))
test(7.2, options=c(datatable.alloccol=0L), new("DataTable", x=data.table(a=1))@x[, b := 2L]$b, 2L)
test(7.2, options=c(datatable.alloccol=0L), {DT = new("DataTable", x=data.table(a=1)); DT@x[, b := 2L]; DT$b}, 2L) # NB: requires assigning DT to test assignment back to that object

0 comments on commit 8d2e958

Please sign in to comment.