Skip to content

Commit

Permalink
Remove -1 from sample tc subtasks (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Mar 23, 2017
1 parent e754212 commit c5f08b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/tcframe/spec/testcase/TestSuite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class TestSuiteBuilder {
}

hasCurSampleTestCase_ = true;
curSampleSubtaskIds_ = {-1};
curSampleSubtaskIds_ = {};
curSubtaskIds_ = &curSampleSubtaskIds_;
curSampleInputLines_ = optional<vector<string>>();
curSampleOutputLines_ = optional<vector<string>>();
Expand Down
8 changes: 4 additions & 4 deletions test/unit/tcframe/spec/testcase/TestSuiteBuilderTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ TEST_F(TestSuiteBuilderTests, Building_OnlySample) {
TestGroup(0, {
TestCaseBuilder()
.setId("foo_sample_1")
.setSubtaskIds({-1})
.setSubtaskIds({})
.setData(new SampleTestCaseData("10\n20\n", "yes\n"))
.build(),
TestCaseBuilder()
.setId("foo_sample_2")
.setSubtaskIds({-1})
.setSubtaskIds({})
.setData(new SampleTestCaseData("30\n"))
.build()})});

Expand Down Expand Up @@ -120,12 +120,12 @@ TEST_F(TestSuiteBuilderTests, Building_Both) {
TestGroup(0, {
TestCaseBuilder()
.setId("foo_sample_1")
.setSubtaskIds({-1})
.setSubtaskIds({})
.setData(new SampleTestCaseData("10\n20\n", "yes\n"))
.build(),
TestCaseBuilder()
.setId("foo_sample_2")
.setSubtaskIds({-1})
.setSubtaskIds({})
.setData(new SampleTestCaseData("30\n"))
.build()}),
TestGroup(-1, {
Expand Down

0 comments on commit c5f08b6

Please sign in to comment.