Improve error message when instance is infeasible

This commit is contained in:
2020-08-13 10:21:29 -05:00
parent 44df06bbfa
commit d8c9a1b30a
5 changed files with 43 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ using RELOG
@testset "Instance" begin
@testset "load" begin
basedir = dirname(@__FILE__)
instance = RELOG.load("$basedir/../instances/s1.json")
instance = RELOG.parsefile("$basedir/../instances/s1.json")
centers = instance.collection_centers
plants = instance.plants
@@ -73,7 +73,7 @@ using RELOG
end
@testset "validate timeseries" begin
@test_throws String RELOG.load("fixtures/s1-wrong-length.json")
@test_throws String RELOG.parsefile("fixtures/s1-wrong-length.json")
end
end