tests/testthat/test-assert_commands.R

# library(testthat); library(remakeGenerator);
context("assert_commands")
source("utils.R")

test_that("Function assert_commands() is correct.", {
  testwd("assert_commands")
  expect_error(assert_commands())
  expect_equal(assert_commands(commands(x = 1, y = f(2))), commands(x = 1, y = f(2)))
  testrm("assert_commands")
})
wlandau/remakeGenerator documentation built on May 4, 2019, 8:44 a.m.