feat: add force of gravity kata and its test-function
This commit is contained in:
parent
046a03af5f
commit
c5c15a9f50
6
tests/codewars/test_kata_force_of_gravity.py
Normal file
6
tests/codewars/test_kata_force_of_gravity.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from src.codewars.kata_force_of_gravity import solution
|
||||||
|
|
||||||
|
def basic_test_cases():
|
||||||
|
assert solution([1000, 1000, 100], ["g", "kg", "m"]) == 6.67e-12
|
||||||
|
assert solution([1000, 1000, 100], ["kg", "kg", "m"]) == 6.667e-9
|
||||||
|
assert solution([1000, 1000, 100], ["kg", "kg", "cm"]) == 0.0000667
|
||||||
Loading…
x
Reference in New Issue
Block a user