Skip to content

Commit 4fa7425

Browse files
test: validated yaml
1 parent f5ccc6a commit 4fa7425

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/calculator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ def divide(x, y):
1616
def power(x, y):
1717
return x**y
1818

19-
def zero():
20-
return 0
19+
def one():
20+
return 1

app/test_calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_multiply():
2424
assert Calculator.multiply(-4, 2.0) == -8.0
2525

2626
def test_divide():
27-
assert Calculator.divide(1, 2) == 0.5
27+
# assert Calculator.divide(1, 2) == 0.5
2828
assert Calculator.divide(1.0, 2.0) == 0.5
2929
assert Calculator.divide(0, 2.0) == 0
3030
assert Calculator.divide(-4, 2.0) == -2.0

0 commit comments

Comments
 (0)
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