From 9b245a3823a772226a2aff43ef95b1482a3aa016 Mon Sep 17 00:00:00 2001 From: Fay-Anouk Date: Fri, 27 Mar 2026 17:16:22 +0100 Subject: [PATCH] feat: moduleA --- src/moduleA.py | 10 ++++++++++ tests/test_moduleA.py | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 src/moduleA.py create mode 100644 tests/test_moduleA.py diff --git a/src/moduleA.py b/src/moduleA.py new file mode 100644 index 0000000..b7f0906 --- /dev/null +++ b/src/moduleA.py @@ -0,0 +1,10 @@ +def addition(a=1, b=2): + return a + b + + +def f(x: int, y: int) -> int: + return x + y + + +if __name__ == "__main__": + print(addition(5, 5)) diff --git a/tests/test_moduleA.py b/tests/test_moduleA.py new file mode 100644 index 0000000..42fe6cc --- /dev/null +++ b/tests/test_moduleA.py @@ -0,0 +1,6 @@ +from src.moduleA import addition + + +def test_a(): + assert addition() == 3 + assert addition(5, 5) == 10