Пример #1
0
 def testLowercase(self):
     self.assertEqual(extractWords('asdf'), ['asdf'])
Пример #2
0
 def testEmptyString(self):
     self.assertEqual(extractWords(''), [])
Пример #3
0
 def testSpaces(self):
     self.assertEqual(extractWords('asdf qwer'), ['asdf', 'qwer'])
     self.assertEqual(extractWords('asdf  qwer'), ['asdf', 'qwer'])
     self.assertEqual(extractWords("asdf\tqwer"), ['asdf', 'qwer'])
Пример #4
0
 def testDigits(self):
     self.assertEqual(extractWords('1234'), [])
     self.assertEqual(extractWords('as12df'), ['asdf'])
Пример #5
0
 def testUppercase(self):
     self.assertEqual(extractWords('ASDF'), ['asdf'])