示例#1
0
 def test_process_allstops(self):
     d = {'a': 1, 'b': 1, 'c': 1, 'splat!': 1}
     words = ['a', 'b', 'c', 'splat!']
     self.assertEqual([], stopper.process(d, words))
示例#2
0
 def test_process_nostops(self):
     words = ['a', 'b', 'c', 'splat!']
     self.assertEqual(words, stopper.process({}, words))
示例#3
0
 def test_process_allstops(self):
     d = {'a':1, 'b':1, 'c':1, 'splat!':1}
     words = ['a', 'b', 'c', 'splat!']
     self.assertEqual([], stopper.process(d, words))
示例#4
0
 def test_process_nostops(self):
     words = ['a', 'b', 'c', 'splat!']
     self.assertEqual(words, stopper.process({}, words))
示例#5
0
 def test_process_allstops(self):
     d = {"a": 1, "b": 1, "c": 1, "splat!": 1}
     words = ["a", "b", "c", "splat!"]
     self.assertEqual([], stopper.process(d, words))
示例#6
0
 def test_process_nostops(self):
     words = ["a", "b", "c", "splat!"]
     self.assertEqual(words, stopper.process({}, words))