mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +00:00
added doctest
This commit is contained in:
parent
57e08afa60
commit
bcc341589b
@ -40,6 +40,10 @@ def capture_area(capture_radius: float) -> float:
|
||||
sigma = math.pi * math.pow(capture_radius, 2)
|
||||
return sigma
|
||||
|
||||
if __name__ == "__main__":
|
||||
import doctest
|
||||
|
||||
doctest.testmod()
|
||||
|
||||
"""
|
||||
Derivation:
|
||||
|
Loading…
x
Reference in New Issue
Block a user