Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created January 11, 2023 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HectorTorres/15658a7079b903f0a99c8707b148fc43 to your computer and use it in GitHub Desktop.
Save HectorTorres/15658a7079b903f0a99c8707b148fc43 to your computer and use it in GitHub Desktop.
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