コード例 #1
0
ファイル: test11.py プロジェクト: kristinash/week0problems
 def test_one(self):
     self.assertEqual(2, count_substrings("This is a test string", "is"))
コード例 #2
0
ファイル: test11.py プロジェクト: kristinash/week0problems
 def test_five(self):
     self.assertEqual(2, count_substrings("This is this and that is this", "this"))
コード例 #3
0
ファイル: test11.py プロジェクト: kristinash/week0problems
 def test_three(self):
     self.assertEqual(4, count_substrings("Python is an awesome language to program in!", "o"))
コード例 #4
0
ファイル: test11.py プロジェクト: kristinash/week0problems
 def test_four(self):
     self.assertEqual(0, count_substrings("We have nothing in common!", "really?"))
コード例 #5
0
ファイル: test11.py プロジェクト: kristinash/week0problems
 def test_two(self):
     self.assertEqual(2, count_substrings("babababa", "baba"))