From 00bcf9431690b4623c8e2e015c08572034492120 Mon Sep 17 00:00:00 2001 From: Aidan-Parilla Date: Tue, 28 Nov 2023 18:07:31 -0500 Subject: [PATCH] More unit tests. --- test.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 221e29f..a09a4d4 100644 --- a/test.py +++ b/test.py @@ -2,8 +2,18 @@ # import pytest -from calculator import add +from calculator import add, subtract, multiply, divide + def test_add(): assert add(2, 2) == 4 +def test_subtract(): + assert subtract(4, 2) == 2 + +def test_multiply(): + assert multiply(4, 4) == 16 + +def test_divide(): + assert divide(8, 2) == 4 +