From ebc456f661010fec20f3c63719d3c976aeb9b030 Mon Sep 17 00:00:00 2001 From: Neil Rogers Date: Thu, 8 Dec 2022 11:36:14 +0000 Subject: [PATCH 1/3] resolves #44 --- pythoncalculator/ncrogers_multiply.py | 2 ++ tests/test_ncrogers_multiply.py | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 pythoncalculator/ncrogers_multiply.py create mode 100644 tests/test_ncrogers_multiply.py diff --git a/pythoncalculator/ncrogers_multiply.py b/pythoncalculator/ncrogers_multiply.py new file mode 100644 index 0000000..314bb0b --- /dev/null +++ b/pythoncalculator/ncrogers_multiply.py @@ -0,0 +1,2 @@ +def multiply(x, y): + return x + y \ No newline at end of file diff --git a/tests/test_ncrogers_multiply.py b/tests/test_ncrogers_multiply.py new file mode 100644 index 0000000..e4b6b7e --- /dev/null +++ b/tests/test_ncrogers_multiply.py @@ -0,0 +1,5 @@ +from pythoncalculator._multiply import multiply + + +def test_multiply(): + assert multiply(10, 3) == 30 From cc3b3bf2e29ae36d87d3f79b232d177a0182e87a Mon Sep 17 00:00:00 2001 From: Neil Rogers Date: Thu, 8 Dec 2022 11:54:16 +0000 Subject: [PATCH 2/3] fixed signs. issue #44 --- pythoncalculator/ncrogers_multiply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythoncalculator/ncrogers_multiply.py b/pythoncalculator/ncrogers_multiply.py index 314bb0b..43dfa55 100644 --- a/pythoncalculator/ncrogers_multiply.py +++ b/pythoncalculator/ncrogers_multiply.py @@ -1,2 +1,2 @@ def multiply(x, y): - return x + y \ No newline at end of file + return x * y \ No newline at end of file From 885ede89447e42004fc1217865e25b56e3c1a51f Mon Sep 17 00:00:00 2001 From: Neil Rogers Date: Thu, 8 Dec 2022 12:01:49 +0000 Subject: [PATCH 3/3] corrected username in test. issue #44 --- tests/test_ncrogers_multiply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ncrogers_multiply.py b/tests/test_ncrogers_multiply.py index e4b6b7e..665e588 100644 --- a/tests/test_ncrogers_multiply.py +++ b/tests/test_ncrogers_multiply.py @@ -1,4 +1,4 @@ -from pythoncalculator._multiply import multiply +from pythoncalculator.ncrogers_multiply import multiply def test_multiply():