Loading ci_cd/problem1b.yml +0 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ compile_problem_1b: - job: prebuild_problem_1b artifacts: true script: - ls -a - cp IntegerP.cpp hw0/tests/ - cd hw0/tests - make problem1b Loading tests/testIntegerP.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ int main() { bool results[] = { test_0(), test_1(), test_2(), test_3(), test_4(), test_5(), test_6(), test_7(), test_8() }; bool allPassed = true; for (int ii=0; ii<sizeof(results)/sizeof(results[0]);ii++) { for (int ii=0; ii<std::size(results);ii++) { cout << "Test of problem " << to_string(ii) << ": " << (results[ii] ? "passed" : "failed") << endl; allPassed &= results[ii]; } Loading Loading
ci_cd/problem1b.yml +0 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ compile_problem_1b: - job: prebuild_problem_1b artifacts: true script: - ls -a - cp IntegerP.cpp hw0/tests/ - cd hw0/tests - make problem1b Loading
tests/testIntegerP.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ int main() { bool results[] = { test_0(), test_1(), test_2(), test_3(), test_4(), test_5(), test_6(), test_7(), test_8() }; bool allPassed = true; for (int ii=0; ii<sizeof(results)/sizeof(results[0]);ii++) { for (int ii=0; ii<std::size(results);ii++) { cout << "Test of problem " << to_string(ii) << ": " << (results[ii] ? "passed" : "failed") << endl; allPassed &= results[ii]; } Loading