예제 #1
0
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
def test_f6():
    assert not bool(dpll2_satisfiable(load(f6)))
예제 #9
0
def test_f5():
    assert bool(dpll_satisfiable(load(f5)))
예제 #10
0
def test_f4():
    assert not bool(dpll_satisfiable(load(f4)))
예제 #11
0
def test_f3():
    assert bool(dpll_satisfiable(load(f3)))
예제 #12
0
def test_f2():
    assert bool(dpll_satisfiable(load(f2)))
예제 #13
0
def test_f1():
    assert bool(dpll_satisfiable(load(f1)))