diff --git a/main_esp.ipynb b/main_esp.ipynb index 8890780..a2a1e2f 100644 --- a/main_esp.ipynb +++ b/main_esp.ipynb @@ -20,7 +20,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ @@ -37,19 +37,34 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "def greater(a,b):\n", - "#your code here#tu codigo aquí" + " if a > b:\n", + " return a\n", + " else:\n", + " return b" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.031s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función\n", "test_greater(greater)" @@ -64,18 +79,938 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ - "#tu codigo aquí" + "def greatest(a,b,c):\n", + " if a > b and a > c:\n", + " return a\n", + " elif b > a and b > c:\n", + " return b\n", + " else:\n", + " return c\n", + "\n", + "# Parece que el enunciado está incompleto." ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "======================================================================\n", + "ERROR: runTest (mod.testing.test_greatest..TestKnown.runTest)\n", + "----------------------------------------------------------------------\n", + "Traceback (most recent call last):\n", + " File \"/Users/sergiovallsm/SoftwareProjects/ironhack/lab-functions-es/mod/testing.py\", line 32, in runTest\n", + " self.assertEqual(fn(self.input), self.output, f\"Should be {self.output}\")\n", + " ~~^^^^^^^^^^^^\n", + "TypeError: greatest() missing 2 required positional arguments: 'b' and 'c'\n", + "\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.039s\n", + "\n", + "FAILED (errors=100)\n" + ] + } + ], "source": [ "# Para testear tu función\n", "test_greatest(greatest)" @@ -90,21 +1025,36 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ "def sum_all(lst):\n", - "#tu codigo aquí" + " result = 0\n", + " for i in lst:\n", + " result += i\n", + " return result" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 18, "metadata": { "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.057s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función\n", "test_sum(sum_all)" @@ -119,21 +1069,36 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 19, "metadata": {}, "outputs": [], "source": [ "def mult_all(lst):\n", - "#tu codigo aquí" + " result = 1\n", + " for i in lst:\n", + " result *= i\n", + " return result" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 20, "metadata": { "scrolled": true }, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.029s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función\n", "test_mult(mult_all)" @@ -148,19 +1113,36 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 21, "metadata": {}, "outputs": [], "source": [ "def oper_all(arr, oper = \"*\"):\n", - "#tu codigo aquí" + " if oper == \"+\":\n", + " return sum_all(arr)\n", + " elif oper == \"*\":\n", + " return mult_all(arr)\n", + " else:\n", + " return \"Operador incorrecto\"" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 22, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.021s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función\n", "test_operations(oper_all)" @@ -175,12 +1157,15 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "def factorial(n):\n", - "#tu codigo aquí" + " x = 1\n", + " for i in range(1, n+1):\n", + " x *= i\n", + " return x" ] }, { @@ -204,9 +1189,21 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 24, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.029s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# This will test your function \n", "test_factorial(factorial)" @@ -223,19 +1220,35 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 25, "metadata": {}, "outputs": [], "source": [ "def unique(lst_un):\n", - "#tu codigo aquí" + " result = []\n", + " for i in lst_un:\n", + " if i not in result:\n", + " result.append(i) # Append está permitido?\n", + " return result" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 26, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.041s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función \n", "test_unique(unique)" @@ -252,19 +1265,48 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 58, "metadata": {}, "outputs": [], "source": [ "def mode_counter(arr):\n", - "#tu codigo aquí" + " \n", + " counter = {}\n", + " for i in arr:\n", + " if i in counter:\n", + " counter[i] += 1\n", + " else:\n", + " counter[i] = 1\n", + " \n", + " max_count = 0\n", + " max_value = arr[0]\n", + " \n", + " for value in counter:\n", + " count = counter[value]\n", + " if count > max_count:\n", + " max_count = count\n", + " max_value = value\n", + " \n", + " return max_value" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 59, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.021s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función \n", "test_mode(mode_counter)" @@ -280,19 +1322,47 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 52, "metadata": {}, "outputs": [], "source": [ "def st_dev(list_sd):\n", - "#tu codigo aquí" + "\n", + " # Media\n", + " sum = 0\n", + " n = 0\n", + " for x in list_sd:\n", + " sum += x\n", + " n += 1\n", + " avg = sum / n\n", + " \n", + " # Valor promedio de (x - avg)²\n", + " sum2 = 0\n", + " for x in list_sd:\n", + " sum2 += (x - avg) ** 2\n", + " var = sum2 / (n - 1) # Varianza\n", + " \n", + " #return math.sqrt(var)\n", + " return var ** 0.5 # Raíz cuadrada" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 53, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.024s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función\n", "test_stdev(st_dev)" @@ -307,19 +1377,37 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 56, "metadata": {}, "outputs": [], "source": [ "def pangram(string):\n", - "#tu codigo aquí" + " abc = \"abcdefghijklmnopqrstuvwxyz\"\n", + " ABC = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n", + " \n", + " for i in range(26):\n", + " if abc[i] not in string and ABC[i] not in string:\n", + " return False\n", + " return True" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 57, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "..............................\n", + "----------------------------------------------------------------------\n", + "Ran 30 tests in 0.009s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función\n", "test_pangram(pangram)" @@ -336,19 +1424,56 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 60, "metadata": {}, "outputs": [], "source": [ "def sort_alpha(string):\n", - "#tu codigo aquí" + "\n", + " # Obtener lista de palabras\n", + " words = []\n", + " word = \"\"\n", + " for i in string:\n", + " if i != ',':\n", + " word += i\n", + " else:\n", + " words.append(word)\n", + " word = \"\"\n", + " words.append(word)\n", + " \n", + " words = sorted(words)\n", + " \n", + " # Convertir a string\n", + " result = \"\"\n", + " n = 0\n", + " for j in words:\n", + " n += 1\n", + " \n", + " for i in range(n):\n", + " result += words[i]\n", + " if i < n-1:\n", + " result += \",\"\n", + " \n", + " return result" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 61, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.023s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función \n", "test_alpha(sort_alpha)" @@ -363,19 +1488,75 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 65, "metadata": {}, "outputs": [], "source": [ "def check_pass(password):\n", - "#tu codigo aquí" + "\n", + " # Verificar longitud\n", + " length = 0\n", + " for _ in password:\n", + " length += 1\n", + " if length < 8:\n", + " return False\n", + " \n", + " # Verificar minúscula\n", + " tiene_minuscula = False\n", + " for char in password:\n", + " if 'a' <= char <= 'z':\n", + " tiene_minuscula = True\n", + " break\n", + " if not tiene_minuscula:\n", + " return False\n", + " \n", + " # Verificar mayúscula\n", + " tiene_mayuscula = False\n", + " for char in password:\n", + " if 'A' <= char <= 'Z':\n", + " tiene_mayuscula = True\n", + " break\n", + " if not tiene_mayuscula:\n", + " return False\n", + " \n", + " # Verificar número\n", + " tiene_numero = False\n", + " for char in password:\n", + " if '0' <= char <= '9':\n", + " tiene_numero = True\n", + " break\n", + " if not tiene_numero:\n", + " return False\n", + " \n", + " # Verificar carácter especial\n", + " tiene_especial = False\n", + " for char in password:\n", + " if not ('a' <= char <= 'z' or 'A' <= char <= 'Z' or '0' <= char <= '9'):\n", + " tiene_especial = True\n", + " break\n", + " if not tiene_especial:\n", + " return False\n", + " \n", + " return True" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 66, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "....................................................................................................\n", + "----------------------------------------------------------------------\n", + "Ran 100 tests in 0.065s\n", + "\n", + "OK\n" + ] + } + ], "source": [ "# Para testear tu función\n", "test_pass(check_pass)" @@ -398,7 +1579,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.13" + "version": "3.13.2" }, "vscode": { "interpreter": { diff --git a/mod/__pycache__/testing.cpython-313.pyc b/mod/__pycache__/testing.cpython-313.pyc new file mode 100644 index 0000000..67fe5ce Binary files /dev/null and b/mod/__pycache__/testing.cpython-313.pyc differ