diff --git a/problems/LabZero_ChapterThree.h b/problems/LabZero_ChapterThree.h index 7bc019436458605f4205ab9e6c7266709177929d..0e0d3f04b383398fe60e791599bb4fd6d4ccab65 100644 --- a/problems/LabZero_ChapterThree.h +++ b/problems/LabZero_ChapterThree.h @@ -17,7 +17,7 @@ void labZero_pThree(); /** - * @input read in four pairs of integral x y coordinates, one per line. + * @input read in four pairs of integral x y coordinates, one per line, in clock-wise order * @output outputs the most specific description of the * four points among the following choices: * square, rectangle, trapezoid, rhombus, none of these @@ -25,15 +25,15 @@ void labZero_pThree(); * @example 1 * 0 0 * 0 1 - * 1 0 * 1 1 + * 1 0 * square * * @example 2 * 0 0 * 0 1 - * 2 0 * 1 1 + * 2 0 * trapezoid */ void labZero_pFour(); diff --git a/tests/LabZero.cpp b/tests/LabZero.cpp index 17ef9021886b901643b0f6abf60f0052a3e9216a..c9f7eef1a2f4365471978fad0051fd1972f84ca7 100644 --- a/tests/LabZero.cpp +++ b/tests/LabZero.cpp @@ -70,14 +70,14 @@ bool test_labZero_pFour() { string out; // example 1 - Common::redirIO("0 0\n0 1\n1 0\n1 1\n"); + Common::redirIO("0 0\n0 1\n1 1\n1 0\n"); labZero_pFour(); out = Common::restoreIO(); if (out.find("square") == string::npos) return false; // example 2 - Common::redirIO("0 0\n0 1\n2 0\n1 1\n"); + Common::redirIO("0 0\n0 1\n1 1\n2 0\n"); labZero_pFour(); out = Common::restoreIO(); if (out.find("trapezoid") == string::npos)