From 9f22bd4062c15fb6b0120eade7e4c1e5d1abe03d Mon Sep 17 00:00:00 2001 From: Spencer Murray Date: Wed, 6 Nov 2024 15:57:53 -0500 Subject: [PATCH] Partial coverage --- main.py | 3 +++ test_main.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index d58907b..ec304c7 100644 --- a/main.py +++ b/main.py @@ -9,3 +9,6 @@ def multiply(a: int, b:int) -> int: def divide(a: int, b: int) -> float: return a / b + +def asdf(a: int) -> str: + return "asdf" * a if a else "rip" diff --git a/test_main.py b/test_main.py index e1140bb..fcffbb1 100644 --- a/test_main.py +++ b/test_main.py @@ -1,4 +1,4 @@ -from main import add, subtract, multiply +from main import add, asdf, subtract, multiply def test_add(): assert add(1, 2) == 3 @@ -8,3 +8,6 @@ def test_subtract(): def test_multiply(): assert multiply(2, 3) == 6 + +def test_asdf(): + assert asdf(0) == "rip"