diff --git a/.coverage b/.coverage index f672368..f5edf4e 100644 Binary files a/.coverage and b/.coverage differ diff --git a/__pycache__/functions.cpython-313.pyc b/__pycache__/functions.cpython-313.pyc index 06f94e5..7f9a9cd 100644 Binary files a/__pycache__/functions.cpython-313.pyc 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 index f0cceb2..2a5ec60 100644 Binary files a/__pycache__/test_functions.cpython-313-pytest-8.3.5.pyc and b/__pycache__/test_functions.cpython-313-pytest-8.3.5.pyc differ diff --git a/coverage.xml b/coverage.xml index d98ecda..4a8b849 100644 --- a/coverage.xml +++ b/coverage.xml @@ -1,14 +1,14 @@ - + C:\Users\KIMHON\Source\Repos\example-ci - + - + @@ -16,9 +16,9 @@ - + - + @@ -30,8 +30,11 @@ - + + + + diff --git a/functions.py b/functions.py index 114cc6d..cf98cfb 100644 --- a/functions.py +++ b/functions.py @@ -8,4 +8,4 @@ def multiply(a, b): return a * b def convert_fahrenheit_to_celsius(fahrenheit): - return multiply(subtract(fahrenheit, 32), 9 / 5) # <-- Fix this in step 7 \ No newline at end of file + return multiply(subtract(fahrenheit, 32), 5 / 9) # <-- Fix this in step 7 \ No newline at end of file diff --git a/test_functions.py b/test_functions.py index 0e59f4a..c85e171 100644 --- a/test_functions.py +++ b/test_functions.py @@ -6,13 +6,13 @@ def test_add(): assert add(2, 3) == 5 assert add('space', 'ship') == 'spaceship' + # uncomment the following test in step 5 def test_subtract(): assert subtract(2, 3) == -1 + # uncomment the following test in step 11 -# def test_convert_fahrenheit_to_celsius(): -# assert f2c(32) == 0 -# assert f2c(122) == pytest.approx(50) -# with pytest.raises(AssertionError): -# f2c(-600) +def test_convert_fahrenheit_to_celsius(): + assert f2c(32) == 0 + assert f2c(122) == pytest.approx(50) \ No newline at end of file