From 165515d24761c0fd2e420f2ef2ac02a61f967e2a Mon Sep 17 00:00:00 2001 From: eslopfer Date: Mon, 23 Jan 2023 07:51:57 +0000 Subject: [PATCH] test(concat_string): add tests for exercise --- sh/tests/concat_string_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sh/tests/concat_string_test.py diff --git a/sh/tests/concat_string_test.py b/sh/tests/concat_string_test.py new file mode 100644 index 00000000..00830a3c --- /dev/null +++ b/sh/tests/concat_string_test.py @@ -0,0 +1,13 @@ +import sys + +sys.path.append('student') + +from concat_string import concat + +def test_concat(): + assert concat("Hello", "World") == "Hello, World" + assert concat("Hi", "there") == "Hi, there" + assert concat("", "") == ", " + assert concat("Hello", "") == "Hello, " + assert concat("", "World") == ", World" +test_concat()