예제 #1
0
def test_ordering():
    for n in range(1, 6, 2):
        for conditions in (CONDITIONS_3, CONDITIONS_6, CONDITIONS_2_3,
                           CONDITIONS_2_3_2):
            o = Ordering(n)
            o.first_pass(conditions)
            yield check_ordering, o, len(conditions)
예제 #2
0
def test_ordering_generator_condition():
    n = 3
    o = Ordering(n)
    o.first_pass(c for c in CONDITIONS_3)
    yield check_ordering, o, len(CONDITIONS_3)
예제 #3
0
def test_ordering():
    for n in range(1, 6, 2):
        for conditions in (CONDITIONS_3, CONDITIONS_6, CONDITIONS_2_3, CONDITIONS_2_3_2):
            o = Ordering(n)
            o.first_pass(conditions)
            yield check_ordering, o, len(conditions)
예제 #4
0
def test_ordering_generator_condition():
    n = 3
    o = Ordering(n)
    o.first_pass(c for c in CONDITIONS_3)
    yield check_ordering, o, len(CONDITIONS_3)