示例#1
0
 def test_with_more_space_between_parasites(self):
     self.assertEqual(
         6, count_doge_words('wow  lol    so  such   much      very'))
示例#2
0
 def test_with_glued_parasite_words(self):
     self.assertEqual(0, count_doge_words('wowlolsosuchmuchvery'))
示例#3
0
 def test_with_repeating_parasite_words(self):
     self.assertEqual(
         5, count_doge_words('wow hard wow much such difficult much'))
示例#4
0
 def test_with_empty_sentence(self):
     self.assertEqual(0, count_doge_words(""))
示例#5
0
 def test_with_parasite_sentence(self):
     self.assertEqual(6, count_doge_words('wow lol so such much very'))
示例#6
0
文件: tests.py 项目: snejy/FMI
 def test_with_more_space_between_parasites(self):
     self.assertEqual(6, count_doge_words('wow lol so such much very'))
示例#7
0
 def test_with_simple_sentence(self):
     self.assertEqual(3, count_doge_words("wow much hard such difficult"))
示例#8
0
文件: tests.py 项目: snejy/FMI
 def test_with_glued_parasite_words(self):
     self.assertEqual(0, count_doge_words('wowlolsosuchmuchvery'))
示例#9
0
文件: tests.py 项目: snejy/FMI
 def test_with_repeating_parasite_words(self):
     self.assertEqual(5, count_doge_words('wow hard wow much such difficult much'))
示例#10
0
文件: tests.py 项目: snejy/FMI
 def test_with_parasite_sentence(self):
     self.assertEqual(6, count_doge_words('wow lol so such much very'))
示例#11
0
文件: tests.py 项目: snejy/FMI
 def test_with_empty_sentence(self):
     self.assertEqual(0, count_doge_words(""))
示例#12
0
文件: tests.py 项目: snejy/FMI
 def test_with_simple_sentence(self):
     self.assertEqual(3, count_doge_words("wow much hard such difficult"))
示例#13
0
 def test_sentence_with_parasite_word_as_part_of_normal_one(self):
     self.assertEqual(2, solution.count_doge_words("wow soon hard such difficult"))
示例#14
0
 def test_sentence_without_slangs(self):
     self.assertEqual(0, solution.count_doge_words("The quick brown fox jumps over"))