tests/testthat/test-readInputAPI.R

# context("readInputAPI")
# 
# describe("readInputAPI", {
#   
#   
#   # opts <- setSimulationPathAPI(path, "input")
#   opts <- setSimulationPathAPI(pathAPI, 1)
#   opts2 <- setSimulationPath("C:/Users/TitouanRobert/Desktop/antaresStd", 1)
#   
#   
#   expect_true(data.table::fsetequal(readInputTS(load = "at", opts = opts), readInputTS(load = "at", opts = opts2)))
#   expect_true(data.table::fsetequal(readInputTS(ror = "at", opts = opts), readInputTS(ror = "at", opts = opts2)))
#   
#   expect_true(data.table::fsetequal(readInputTS(wind = "at", opts = opts), readInputTS(wind = "at", opts = opts2)))
#   expect_true(data.table::fsetequal(readInputTS(solar = "at", opts = opts), readInputTS(solar = "at", opts = opts2)))
#   
#   expect_true(data.table::fsetequal(readInputTS(misc = "at", opts = opts), readInputTS(misc = "at", opts = opts2)))
# 
# })

Try the antaresRead package in your browser

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

antaresRead documentation built on Sept. 13, 2024, 1:12 a.m.