-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
217fea1
commit 82cf1cb
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pytest | ||
from src.ej11_def import suma_enteros | ||
|
||
@pytest.mark.parametrize( | ||
"input_x, expected", | ||
[ | ||
(10, "La suma de los enteros desde 1 hasta (10) es: (55)"), | ||
(7, "La suma de los enteros desde 1 hasta (7) es: (28)") | ||
] | ||
) | ||
def test_suma_enteros(input_x, expected): | ||
assert suma_enteros(input_x) == expected |