diff --git a/app/calculator.py b/app/calculator.py index ab6c338e..4fbbd4fa 100644 --- a/app/calculator.py +++ b/app/calculator.py @@ -12,3 +12,9 @@ def divide(x, y): if y == 0: return 'Cannot divide by 0' return x * 1.0 / y + + def power(x, y): + return x**y + + def one(): + return 1 diff --git a/app/smiles.py b/app/smiles.py new file mode 100644 index 00000000..3ef702dc --- /dev/null +++ b/app/smiles.py @@ -0,0 +1,3 @@ +class Smiles: + def smiley(): + return ":)" diff --git a/app/test_calculator.py b/app/test_calculator.py index 43bc650e..f5641938 100644 --- a/app/test_calculator.py +++ b/app/test_calculator.py @@ -24,7 +24,7 @@ def test_multiply(): assert Calculator.multiply(-4, 2.0) == -8.0 def test_divide(): - assert Calculator.divide(1, 2) == 0.5 + # assert Calculator.divide(1, 2) == 0.5 assert Calculator.divide(1.0, 2.0) == 0.5 assert Calculator.divide(0, 2.0) == 0 assert Calculator.divide(-4, 2.0) == -2.0 diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..bc0959f4 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +profiling: + critical_files_paths: + - app/calculator.py pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy