示例#1
0
 def test_Vocabulary(self):
     self.assertEqual(lab1.Vocabulary('', ''), "")
示例#2
0
 def test_Vocabulary(self):
     with self.assertRaises(IndexError):
         lab1.Vocabulary('hello hello hello hello', 'hello')
示例#3
0
 def test_Vocabulary(self):
     self.assertEqual(
         lab1.Vocabulary('hello hello hello hello', 'hello goodbye'),
         "goodbye goodbye goodbye goodbye")
示例#4
0
 def test_Vocabulary(self):
     self.assertEqual(lab1.Vocabulary('hello world', ''), "hello world")
示例#5
0
 def test_Vocabulary(self):
     self.assertEqual(lab1.Vocabulary('Privet mir', 'hello goodbye'),
                      "Privet mir")
示例#6
0
 def test_Vocabulary(self):
     self.assertEqual(lab1.Vocabulary('hello world', 'hello goodbye'),
                      "goodbye world")
示例#7
0
 def test_Vocabulary(self):
     self.assertEqual(
         lab1.Vocabulary('hello earth, hello mars, hello sun',
                         'hello goodbye\nsun moon'),
         "goodbye earth, goodbye mars, goodbye moon")