tests/testthat/test-singleGAMSfile.R

context("singleGAMSfile test")

test_that("GAMS file merge is working", {
  tmpfile <- tempfile()
  expect_silent(singleGAMSfile(system.file("dummymodel",package="lucode"),output = tmpfile))
  expect_identical(readLines(tmpfile), readLines(system.file("extdata/full.gms",package="lucode")))
})
pik-piam/lucode documentation built on June 10, 2020, 6:55 p.m.