Implement Unit Testing for fancymath #8

Merged
TimDiller merged 17 commits from unit_tests into main 2025-10-24 17:10:59 +00:00
4 changed files with 8 additions and 0 deletions
Showing only changes of commit 922ed4d394 - Show all commits

View File

@@ -15,6 +15,14 @@ def fact(n: int) -> int:
return n * fact(n - 1)
def is_even(x):
return x % 2 == 0
def is_odd(x):
return x % 2 == 1
if __name__ == '__main__':
n = 5
assert fact(n) == 120

0
test/test_math.py Normal file
View File

0
test/test_util.py Normal file
View File

0
test/test_vector.py Normal file
View File