Add faulty circle_area function and tests

This commit is contained in:
2021-11-04 19:52:28 +01:00
parent 71e3ebf161
commit 918f294df9
3 changed files with 27 additions and 0 deletions

12
drone_test/__init__.py Normal file
View File

@@ -0,0 +1,12 @@
"""Python module to test drone builds"""
import math
def circle_area(radius: float):
"""Calculate the area of a circle
:param radius: circle radius
:raises ValueError: radius is negative
:return: area of the circle
"""
return math.pi * radius ** 2