Skip to content

Commit 8b2b3d2

Browse files
committed
Added more tests to Strings / Concatenation task
1 parent 72ac966 commit 8b2b3d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Strings/Concatenation/tests/test_task.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,13 @@ def test_import_hello(self):
1111
except ImportError:
1212
self.assertTrue(False, msg="Do not rename any variables.")
1313

14+
def test_0_code_len(self):
15+
with open("concatenation.py", "r") as taskfile:
16+
lines = taskfile.readlines()
17+
self.assertTrue(len(lines) == 5, msg="Please do not add or remove any lines from the code file.")
1418

19+
def test_statement_1(self):
20+
with open("concatenation.py", "r") as taskfile:
21+
lines = taskfile.readlines()
22+
code = lines[-2]
23+
self.assertTrue("+" in code, msg="Your solution does not use concatenation.")

0 commit comments

Comments
 (0)