tests/test-object.r

context("Basic object properties")

test_that("clone creates fields", {
  a <- Object$clone(a = 1, b = 2)
  
  expect_that(a$a, equals(1))
  expect_that(a$b, equals(2))
  
})
hadley/mutatr documentation built on May 17, 2019, 11:04 a.m.