tests/testthat/test-utils-pipe.R

test_that("pipe works", {
  multiply <- function(x, y) {
    x * y
  }

  expect_equal(2 %>% multiply(2), 4)
})
Fagan-Lab/dynet documentation built on March 3, 2021, 2:53 a.m.