From 4c199d54b0ceb70fb2ac1cdac6a610536296eaa6 Mon Sep 17 00:00:00 2001 From: Thomas Pfau Date: Thu, 30 Nov 2017 11:45:27 +0100 Subject: [PATCH] Cleanup of tests --- .../analysis/testEnumerateOptimal/testenumOptimalSols.m | 3 +++ .../analysis/testThermo/testAddLoopLawConstraints.m | 3 +++ test/verifiedTests/design/testOptGene.m | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/test/verifiedTests/analysis/testEnumerateOptimal/testenumOptimalSols.m b/test/verifiedTests/analysis/testEnumerateOptimal/testenumOptimalSols.m index de1510cbe8..7e95776c7d 100644 --- a/test/verifiedTests/analysis/testEnumerateOptimal/testenumOptimalSols.m +++ b/test/verifiedTests/analysis/testEnumerateOptimal/testenumOptimalSols.m @@ -47,5 +47,8 @@ end end +%Remove the output, to keep the toolbox updateable. +delete([fileDir filesep 'MILPProblem.mat']); + fprintf('Done...\n'); cd(currentDir) diff --git a/test/verifiedTests/analysis/testThermo/testAddLoopLawConstraints.m b/test/verifiedTests/analysis/testThermo/testAddLoopLawConstraints.m index 4e4695a183..a680a4cba5 100644 --- a/test/verifiedTests/analysis/testThermo/testAddLoopLawConstraints.m +++ b/test/verifiedTests/analysis/testThermo/testAddLoopLawConstraints.m @@ -51,5 +51,8 @@ % define the solver packages to be used to run this test fprintf('Done.\n'); +%Remove the output, to keep the toolbox updateable. +delete([fileDir filesep 'MILPProblem.mat']); + % change the directory cd(currentDir) diff --git a/test/verifiedTests/design/testOptGene.m b/test/verifiedTests/design/testOptGene.m index 72bfe8dd97..f5fa59b76a 100644 --- a/test/verifiedTests/design/testOptGene.m +++ b/test/verifiedTests/design/testOptGene.m @@ -60,6 +60,10 @@ assert(tested,sprintf('This method is only tested with gurobi and ibm_cplex but should work with other solvers as well.\n To test it please add your prefered solver to the list in this test and rerun the test')); % close the open windows close all + +%Remove the output, to keep the toolbox updateable. +delete([fileDir filesep 'MILPProblem.mat']); + fprintf('Done.\n'); % change to old directory cd(currentDir);