Skip to content

Commit

Permalink
Increase limit of subtasks and test groups to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Mar 12, 2015
1 parent 0680d6c commit 8537c6f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion include/tcframe/generator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ class BaseGenerator : protected TProblem, protected TestCasesCollector {
virtual void TestGroup3() { throw NotImplementedException(); }
virtual void TestGroup4() { throw NotImplementedException(); }
virtual void TestGroup5() { throw NotImplementedException(); }
virtual void TestGroup6() { throw NotImplementedException(); }
virtual void TestGroup7() { throw NotImplementedException(); }
virtual void TestGroup8() { throw NotImplementedException(); }
virtual void TestGroup9() { throw NotImplementedException(); }
virtual void TestGroup10() { throw NotImplementedException(); }

private:
Logger* logger;
Expand All @@ -117,7 +122,12 @@ class BaseGenerator : protected TProblem, protected TestCasesCollector {
&BaseGenerator::TestGroup2,
&BaseGenerator::TestGroup3,
&BaseGenerator::TestGroup4,
&BaseGenerator::TestGroup5
&BaseGenerator::TestGroup5,
&BaseGenerator::TestGroup6,
&BaseGenerator::TestGroup7,
&BaseGenerator::TestGroup8,
&BaseGenerator::TestGroup9,
&BaseGenerator::TestGroup10
};

vector<TestGroup*> getTestData() {
Expand Down
12 changes: 11 additions & 1 deletion include/tcframe/problem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class BaseProblem : protected ConstraintsCollector, protected IOFormatsCollector
virtual void Subtask3() { throw NotImplementedException(); }
virtual void Subtask4() { throw NotImplementedException(); }
virtual void Subtask5() { throw NotImplementedException(); }
virtual void Subtask6() { throw NotImplementedException(); }
virtual void Subtask7() { throw NotImplementedException(); }
virtual void Subtask8() { throw NotImplementedException(); }
virtual void Subtask9() { throw NotImplementedException(); }
virtual void Subtask10() { throw NotImplementedException(); }

vector<Subtask*> getSubtasks() {
try {
Expand Down Expand Up @@ -71,7 +76,12 @@ class BaseProblem : protected ConstraintsCollector, protected IOFormatsCollector
&BaseProblem::Subtask2,
&BaseProblem::Subtask3,
&BaseProblem::Subtask4,
&BaseProblem::Subtask5
&BaseProblem::Subtask5,
&BaseProblem::Subtask6,
&BaseProblem::Subtask7,
&BaseProblem::Subtask8,
&BaseProblem::Subtask9,
&BaseProblem::Subtask10,
};
};

Expand Down

0 comments on commit 8537c6f

Please sign in to comment.