tests/testthat/test_tf.R

# TF Test

sys1 <- tf(c(1,3), c(1,2,5))

context("TF: Model Creation Test")
test_that("System is a tf object", {
  expect_is(sys1, 'tf')
})

context("TF: Model Data Test")
test_that("TF values are matrices", {
  expect_true(is.matrix(sys1$num))
  expect_true(is.matrix(sys1$den))
})

Try the control package in your browser

Any scripts or data that you put into this service are public.

control documentation built on May 1, 2019, 7:33 p.m.