コード例 #1
0
 def test_return_string_length(self):
     height = 10
     line = randint(0, 10)
     self.assertEqual(len(mario_more.create_line(line, height)),
                      height + line + 2)
コード例 #2
0
 def test_when_line_equals_height_return_full_line(self):
     self.assertEqual("######  ######", mario_more.create_line(6, 6))
コード例 #3
0
 def test_regular_input(self):
     self.assertEqual("    ##  ##", mario_more.create_line(2, 6))
コード例 #4
0
ファイル: test.py プロジェクト: chiptus/cs50x-solutions
 def test_return_string_length_height_plus_one(self):
     height = 10
     line = randint(0, 10)
     self.assertEqual(len(mario_less.create_line(line, height)), height + 1)