tests/testthat/test-diagram.R

test_that("HVAC Diagram", {
    skip_on_cran()

    example <- copy_example()

    expect_s3_class(job <- eplus_job(example$idf, example$epw), "EplusJob")

    expect_warning(res <- hvac_diagram(job$version(), tempfile()))

    expect_s3_class(job$run(wait = TRUE, echo = FALSE), "EplusJob")

    expect_warning(res <- hvac_diagram(job$version(), job$locate_output(".bnd")))
    expect_type(res, "character")
})

Try the eplusr package in your browser

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

eplusr documentation built on Aug. 25, 2023, 5:18 p.m.