Example #1
0
 def test_with_more_space_between_parasites(self):
     self.assertEqual(
         6, count_doge_words('wow  lol    so  such   much      very'))
Example #2
0
 def test_with_glued_parasite_words(self):
     self.assertEqual(0, count_doge_words('wowlolsosuchmuchvery'))
Example #3
0
 def test_with_repeating_parasite_words(self):
     self.assertEqual(
         5, count_doge_words('wow hard wow much such difficult much'))
Example #4
0
 def test_with_empty_sentence(self):
     self.assertEqual(0, count_doge_words(""))
Example #5
0
 def test_with_parasite_sentence(self):
     self.assertEqual(6, count_doge_words('wow lol so such much very'))
Example #6
0
File: tests.py Project: snejy/FMI
 def test_with_more_space_between_parasites(self):
     self.assertEqual(6, count_doge_words('wow lol so such much very'))
Example #7
0
 def test_with_simple_sentence(self):
     self.assertEqual(3, count_doge_words("wow much hard such difficult"))
Example #8
0
File: tests.py Project: snejy/FMI
 def test_with_glued_parasite_words(self):
     self.assertEqual(0, count_doge_words('wowlolsosuchmuchvery'))
Example #9
0
File: tests.py Project: snejy/FMI
 def test_with_repeating_parasite_words(self):
     self.assertEqual(5, count_doge_words('wow hard wow much such difficult much'))
Example #10
0
File: tests.py Project: snejy/FMI
 def test_with_parasite_sentence(self):
     self.assertEqual(6, count_doge_words('wow lol so such much very'))
Example #11
0
File: tests.py Project: snejy/FMI
 def test_with_empty_sentence(self):
     self.assertEqual(0, count_doge_words(""))
Example #12
0
File: tests.py Project: snejy/FMI
 def test_with_simple_sentence(self):
     self.assertEqual(3, count_doge_words("wow much hard such difficult"))
Example #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"))
Example #14
0
 def test_sentence_without_slangs(self):
     self.assertEqual(0, solution.count_doge_words("The quick brown fox jumps over"))