tests/testthat/test-dt.R

library(testthat)
library(data.table)

test_that("dt [ method ok", {
  data.table(group=1:2, foo="bar")[, {
    expect_identical(foo, "bar")
  }, by=group]
})
tdhock/testdtbug documentation built on Nov. 5, 2019, 10:03 a.m.