From 79ee88aeaf22eb560a4f2b54b07a49452fc9c491 Mon Sep 17 00:00:00 2001 From: Gandalem Date: Wed, 23 Sep 2026 02:04:35 +0000 Subject: [PATCH] add funtion test code --- src/add.py | 3 +++ tests/test_add.py | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 src/add.py create mode 100644 tests/test_add.py diff --git a/src/add.py b/src/add.py new file mode 100644 index 0000000..36cebff --- /dev/null +++ b/src/add.py @@ -0,0 +1,3 @@ +def sum(a, b): + return a + b + diff --git a/tests/test_add.py b/tests/test_add.py new file mode 100644 index 0000000..7065a34 --- /dev/null +++ b/tests/test_add.py @@ -0,0 +1,4 @@ +from src.add import add + +def test_add(): + assert add(5, 5) == 10