コード例 #1
0
ファイル: test_dimacs.py プロジェクト: naveensaigit/diofant
def load_file(location):
    """Loads a boolean expression from a file."""
    location = os.path.dirname(__file__) + '/' + location
    with open(location) as f:
        s = f.read()

    return load(s)
コード例 #2
0
def test_f5():
    assert bool(dpll_satisfiable(load(f5)))
コード例 #3
0
def test_f4():
    assert not bool(dpll_satisfiable(load(f4)))
コード例 #4
0
def test_f3():
    assert bool(dpll_satisfiable(load(f3)))
コード例 #5
0
def test_f2():
    assert bool(dpll_satisfiable(load(f2)))
コード例 #6
0
def test_f1():
    assert bool(dpll_satisfiable(load(f1)))
コード例 #7
0
def test_f6():
    assert not bool(dpll2_satisfiable(load(f6)))
コード例 #8
0
ファイル: test_dimacs.py プロジェクト: skirpichev/diofant
def test_f6():
    assert not bool(dpll2_satisfiable(load(f6)))
コード例 #9
0
ファイル: test_dimacs.py プロジェクト: skirpichev/diofant
def test_f5():
    assert bool(dpll_satisfiable(load(f5)))
コード例 #10
0
ファイル: test_dimacs.py プロジェクト: skirpichev/diofant
def test_f4():
    assert not bool(dpll_satisfiable(load(f4)))
コード例 #11
0
ファイル: test_dimacs.py プロジェクト: skirpichev/diofant
def test_f3():
    assert bool(dpll_satisfiable(load(f3)))
コード例 #12
0
ファイル: test_dimacs.py プロジェクト: skirpichev/diofant
def test_f2():
    assert bool(dpll_satisfiable(load(f2)))
コード例 #13
0
ファイル: test_dimacs.py プロジェクト: skirpichev/diofant
def test_f1():
    assert bool(dpll_satisfiable(load(f1)))