Beispiel #1
0
def test_prime_form_algorithm_test_2():
    algorithm = "prime_form_marvin_laprade"
    fn = contour.prime_form_algorithm_test(5, algorithm)
    assert fn == [[(5, 3), [0, 1, 3, 2, 4], [0, 2, 1, 3, 4]],
                  [(5, 8), [0, 2, 3, 1, 4], [0, 3, 1, 2, 4]],
                  [(5, 25), [1, 0, 4, 2, 3], [1, 2, 0, 4, 3]],
                  [(5, 27), [1, 2, 4, 0, 3], [1, 4, 0, 2, 3]]]
Beispiel #2
0
def test_prime_form_algorithm_test_3():
    algorithm = "prime_form_sampaio"
    assert contour.prime_form_algorithm_test(6, algorithm) == []
Beispiel #3
0
def test_prime_form_algorithm_test_1():
    algorithm = "prime_form_marvin_laprade"
    assert contour.prime_form_algorithm_test(4, algorithm) == []