Browse Source

test(concat_string): add tests for exercise

DEV-4397-piscine-ai-missing-file-for-ex-7-of-nlp
eslopfer 1 year ago
parent
commit
165515d247
  1. 13
      sh/tests/concat_string_test.py

13
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()
Loading…
Cancel
Save