From 922ed4d39429b01d142f1b02e1e98bee50fd04fa Mon Sep 17 00:00:00 2001 From: Tim Diller Date: Fri, 24 Oct 2025 09:33:33 -0500 Subject: [PATCH] initial commit test suite --- src/fancymath/math.py | 8 ++++++++ test/test_math.py | 0 test/test_util.py | 0 test/test_vector.py | 0 4 files changed, 8 insertions(+) create mode 100644 test/test_math.py create mode 100644 test/test_util.py create mode 100644 test/test_vector.py diff --git a/src/fancymath/math.py b/src/fancymath/math.py index eafeaf8..b807566 100644 --- a/src/fancymath/math.py +++ b/src/fancymath/math.py @@ -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 diff --git a/test/test_math.py b/test/test_math.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test_util.py b/test/test_util.py new file mode 100644 index 0000000..e69de29 diff --git a/test/test_vector.py b/test/test_vector.py new file mode 100644 index 0000000..e69de29