Пример #1
0
 def test_canCancel_pathsuccess(self):
     """Should return True when adjacent
     generators are inverses of one other"""
     bw = BraidWord([1, 2, 3, -3])
     # Execution path True
     self.assertTrue(bw.canCancel(2))
Пример #2
0
 def test_canCancel_pathfail(self):
     """Should return False when adjacent
     generators are not inverses of one other"""
     bw = BraidWord([1, 2, 3, -3])
     # Execution path False
     self.assertFalse(bw.canCancel(0))