Created
January 11, 2023 20:13
-
-
Save HectorTorres/15658a7079b903f0a99c8707b148fc43 to your computer and use it in GitHub Desktop.
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
import math | |
def function_rectangle_type(a,b,c): | |
if (a == b) and (b == c): | |
return "Equilatero" | |
elif (a != b) and (b != c): | |
return "Escaleno" | |
else: | |
return "Isoceles" | |
def test_function_rectangle_type(): | |
assert function_rectangle_type(1,1,1) == "Equilatero" | |
assert function_rectangle_type(1,2,3) == "Escaleno" | |
assert function_rectangle_type(1,1,3) == "Isoceles" | |
test_function_rectangle_type() | |
#Run the file | |
#pytest test_pytest_a09.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment