def testTwoSentences():
    assert wc('Hey! This word count is pretty cool!') == 7
def testOneWorldFalse():
    assert wc('Hey!') != 2
def testSentence():
    assert wc('This is an activity') == 4
def testOneSentenceFalse():
    assert wc('This is an activity.') != 6
예제 #5
0
 def testTwoSentences(self):
     self.assertEqual(wc('Hey! This word count is pretty cool!'), 7)
예제 #6
0
 def testSentence(self):
     self.assertEqual(wc('This is an activity.'), 4)
예제 #7
0
 def testOneWordFalse(self):
     self.assertNotEqual(wc('Hey'), 2)
예제 #8
0
 def testOneSentenceFalse(self):
     self.assertNotEqual(wc('This is an activity'), 6)