tests/testthat/test-sigma_param.R

context("sigma-param")

describe("sigma_param() works", {
  it("can be initialized correctly", {
    input <- sigma_param(0.04, name = "PROP")
    output <-
      structure(
        list(
          block = FALSE,
          name = "PROP",
          fixed = FALSE,
          correlation = FALSE,
          value = 0.04,
          comment = NULL
        ),
        .Names = c("block", "name", "fixed",
                   "correlation", "value", "comment"),
        class = "sigma"
      )
    expect_equal(input,
                 output)
  })
})
dpastoor/blueprint documentation built on May 24, 2019, 4:01 a.m.