We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b2b3d2 commit 53c7b6eCopy full SHA for 53c7b6e
Strings/String multiplication/tests/test_task.py
@@ -9,3 +9,14 @@ def test_food(self):
9
10
except ImportError:
11
self.assertTrue(False, msg="Do not rename any variables.")
12
+
13
+ def test_0_code_len(self):
14
+ with open("string_multiplication.py", "r") as taskfile:
15
+ lines = taskfile.readlines()
16
+ self.assertTrue(len(lines) == 3, msg="Please do not add or remove any lines from the code file.")
17
18
+ def test_statement_1(self):
19
20
21
+ code = lines[-2]
22
+ self.assertTrue("*" in code, msg="Your solution does not use string multiplication.")
0 commit comments