コード例 #1
0
    def setUp(self):
        # Create BoolRing with number of variables
        # enough for all tests
        self.B = BoolPolyRing(10, poly_type="zdd")

        patcher = mock.patch('gb.autoreduce', _autoreduce)
        self.addCleanup(patcher.stop)
        patcher.start()
コード例 #2
0
 def setUp(self):
     self.B = BoolPolyRing(4, poly_type="zdd")
コード例 #3
0
 def setUp(self):
     self.poly_type = 'list'
     self.B = BoolPolyRing(10, poly_type=self.poly_type)
コード例 #4
0
ファイル: test_polyfuncs.py プロジェクト: djidan10/SymbSAT
 def setUp(self):
     self.B = BoolPolyRing(4, poly_type="list")
コード例 #5
0
 def setUp(self):
     # Create BoolRing with number of variables
     # enough for all tests
     self.B = BoolPolyRing(10, poly_type="zdd")
コード例 #6
0
ファイル: test_ring.py プロジェクト: djidan10/SymbSAT
    def test_ring_zdd(self):
        B = BoolPolyRing(self.ring_size, poly_type="zdd")
        x1, x2, x3, x4, x5 = B.gens

        for var in B.gens:
            self.assertTrue(isinstance(var, ZDD))
コード例 #7
0
ファイル: test_ring.py プロジェクト: djidan10/SymbSAT
    def test_ring(self):
        B = BoolPolyRing(self.ring_size)
        x1, x2, x3, x4, x5 = B.gens

        self.assertEqual(self.ring_size, len(B.gens))
コード例 #8
0
 def setUp(self):
     self.B = BoolPolyRing(4)