From c5c15a9f50aae5c25bdd79451356eb5965dacfb4 Mon Sep 17 00:00:00 2001 From: zimmersandro Date: Mon, 23 Feb 2026 22:28:54 +0100 Subject: [PATCH] feat: add force of gravity kata and its test-function --- tests/codewars/test_kata_force_of_gravity.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/codewars/test_kata_force_of_gravity.py diff --git a/tests/codewars/test_kata_force_of_gravity.py b/tests/codewars/test_kata_force_of_gravity.py new file mode 100644 index 0000000..5ab8e39 --- /dev/null +++ b/tests/codewars/test_kata_force_of_gravity.py @@ -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 \ No newline at end of file