예제 #1
0
 def test_equals_5(self):
     self.assertEqual(word_count(
         'I\'d been using my sphere as a stool. I traced counterclockwise'
         ' circles on it with my fingertips and it shrank until I could '
         'palm it. My bolt had shifted while I\'d been sitting. I pulled '
         'it up and yanked the pleats straight as I careered around '
         'tables, chairs, globes, and slow-moving fraas. I passed under '
         'a stone arch into the Scriptorium. The place smelled richly of'
         ' ink. Maybe it was because an ancient fraa and his two fids '
         'were copying out books there. But I wondered how long it would'
         ' take to stop smelling that way if no one ever used it at all;'
         ' a lot of ink had been spent there, and the wet smell of it '
         'must be deep into everything.'), 112)
예제 #2
0
 def test_equals_5(self):
     self.assertEqual(
         word_count(
             'I\'d been using my sphere as a stool. I traced counterclockwise'
             ' circles on it with my fingertips and it shrank until I could '
             'palm it. My bolt had shifted while I\'d been sitting. I pulled '
             'it up and yanked the pleats straight as I careered around '
             'tables, chairs, globes, and slow-moving fraas. I passed under '
             'a stone arch into the Scriptorium. The place smelled richly of'
             ' ink. Maybe it was because an ancient fraa and his two fids '
             'were copying out books there. But I wondered how long it would'
             ' take to stop smelling that way if no one ever used it at all;'
             ' a lot of ink had been spent there, and the wet smell of it '
             'must be deep into everything.'), 112)
예제 #3
0
 def test_equals(self):
     self.assertEqual(word_count('Hello there, little user5453 374 ())$.'),
                      4)
예제 #4
0
 def test_equals_4(self):
     self.assertEqual(
         word_count('Really2374239847 long ^&#$&(*@# sequence'), 3)
예제 #5
0
 def test_equals_3(self):
     self.assertEqual(word_count('hello there and hi'), 4)
예제 #6
0
 def test_equals_2(self):
     self.assertEqual(word_count('hello there'), 2)
예제 #7
0
 def test_equals(self):
     self.assertEqual(word_count(
         'Hello there, little user5453 374 ())$.'), 4)
예제 #8
0
 def test_equals_4(self):
     self.assertEqual(word_count(
         'Really2374239847 long ^&#$&(*@# sequence'), 3)
예제 #9
0
 def test_equals_3(self):
     self.assertEqual(word_count('hello there and hi'), 4)
예제 #10
0
 def test_equals_2(self):
     self.assertEqual(word_count('hello there'), 2)