Ejemplo n.º 1
0
 def non_test_causation(self):
     v = WordTypeQuantities.CausationCheck()
     cases = {
         """I am not sorry because   I was merely repeating.""": 1,
         """There are three effects in effects in effects puppies. """: 3,
         """The effect of because me turtle.""": 2
     }
     for (words, count) in cases.items():
         d = Data(words, True)
         assert (v.build(d) == count)
         d = Data(words, False)
         assert (v.build(d) == count)
Ejemplo n.º 2
0
 def non_test_empty(self):
     v = WordTypeQuantities.CausationCheck()
     d = Data("", True)
     assert (v.build(d) == 0)
     d = Data("", False)
     assert (v.build(d) == 0)