diff --git a/.coverage b/.coverage new file mode 100644 index 0000000..f672368 Binary files /dev/null and b/.coverage differ diff --git a/__pycache__/functions.cpython-313.pyc b/__pycache__/functions.cpython-313.pyc new file mode 100644 index 0000000..06f94e5 Binary files /dev/null and b/__pycache__/functions.cpython-313.pyc differ diff --git a/__pycache__/test_functions.cpython-313-pytest-8.3.5.pyc b/__pycache__/test_functions.cpython-313-pytest-8.3.5.pyc new file mode 100644 index 0000000..f0cceb2 Binary files /dev/null and b/__pycache__/test_functions.cpython-313-pytest-8.3.5.pyc differ diff --git a/coverage.xml b/coverage.xml new file mode 100644 index 0000000..d98ecda --- /dev/null +++ b/coverage.xml @@ -0,0 +1,40 @@ + + + + + + C:\Users\KIMHON\Source\Repos\example-ci + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/functions.py b/functions.py index dededd1..114cc6d 100644 --- a/functions.py +++ b/functions.py @@ -2,7 +2,7 @@ def add(a, b): return a + b def subtract(a, b): - return a + b # <--- fix this in step 7 + return a - b # <--- fix this in step 7 def multiply(a, b): return a * b diff --git a/test_functions.py b/test_functions.py index 732930a..0e59f4a 100644 --- a/test_functions.py +++ b/test_functions.py @@ -7,8 +7,8 @@ def test_add(): assert add('space', 'ship') == 'spaceship' # uncomment the following test in step 5 -#def test_subtract(): -# assert subtract(2, 3) == -1 +def test_subtract(): + assert subtract(2, 3) == -1 # uncomment the following test in step 11 # def test_convert_fahrenheit_to_celsius():