tests/testthat/test-imports.R

library(pacta)

test_that("import pipe operator", {
  add2 <- function(x) {x + 2}
  expect_equal(2 %>% add2, 4)  
})
2DegreesInvesting/pacta documentation built on June 17, 2019, 12:04 p.m.