def test_just_whitespace(self): result = wordcount.calc(" ") self.assertEqual(result, 0)
def test_extra_whitespace(self): result = wordcount.calc(" hello world ") self.assertEqual(result, 2)
def test_empty(self): result = wordcount.calc("") self.assertEqual(result, 0)
def test_normal1(self): result = wordcount.calc("hello world") self.assertEqual(result, 2)
def test_normal2(self): result = wordcount.calc("a b c d e f g h i j k l m n o p q r s t u v w x y z") self.assertEqual(result, 26)
def test_just_whitespace(): assert wordcount.calc(" ") == 0
def test_empty(): assert wordcount.calc("") == 0
def test_extra_whitespace(): assert wordcount.calc(" hello world ") == 2
def test_normal2(): assert wordcount.calc( "a b c d e f g h i j k l m n o p q r s t u v w x y z") == 26
def test_normal1(): assert wordcount.calc("hello world") == 2