Пример #1
0
 def test_populate(self):
     words =['where','is','world','taking','us','spontaneously','this','one','will','do', 'just', 'fine', 'thankyou']
     directions = WSdirections()
     test = WSmatrix((11,11),directions.Right | directions.Left, words, wstext=self.wstext)
     matrix, accepted, rejected = test.populate()
     #assert rejected == ['spontaneously', 'is', 'us']
     assert len(accepted) == 10
Пример #2
0
 def test_populate(self):
     words = [
         'where', 'is', 'world', 'taking', 'us', 'spontaneously', 'this',
         'one', 'will', 'do', 'just', 'fine', 'thankyou'
     ]
     directions = WSdirections()
     test = WSmatrix((11, 11),
                     directions.Right | directions.Left,
                     words,
                     wstext=self.wstext)
     matrix, accepted, rejected = test.populate()
     #assert rejected == ['spontaneously', 'is', 'us']
     assert len(accepted) == 10