We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c422217 commit 154ac0bCopy full SHA for 154ac0b
2 files changed
tests/test_init.py
@@ -1,6 +1,7 @@
1
import pytest
2
from the_amazing_library import add
3
4
+
5
@pytest.mark.parametrize(
6
"a, b, expected",
7
[
@@ -9,7 +10,7 @@
9
10
(0, 0, 0),
11
(-2, 3, 1),
12
(2, -3, -1),
- ]
13
+ ],
14
)
15
def test_add(a, b, expected):
16
assert add(a, b) == expected
the_amazing_library/__init__.py
@@ -1,2 +1,6 @@
def add(a: int, b: int) -> str:
return str(a - b)
+def subtract(a: int, b: int) -> int:
+ return a - b
0 commit comments