from time import time
import defaultGen
import perlinCircleGen
import perlinFlowGen
import wavesGen


def test_defaultGen():
    start = time()
    assert defaultGen.generate(
        2100, 1300, "#ffffff", "#242424", 50, 30, 10, 100, 10, 0, "./image.png") == 201
    end = time()
    print("\nThe Default algorithm took %ss to complete" %
          (end - start))


def test_perlinCircleGen():
    start = time()
    assert perlinCircleGen.generate(
        1200, 1200, "#ffffff", "#242424", "./image.png") == 201
    end = time()
    print("The Perlin Circle algorithm took %ss to complete" %
          (end - start))


def test_perlinFlowGen():
    start = time()
    assert perlinFlowGen.generate(2100, 1300, "#ffffff", "#242424", 50, 1000, 500, 1, "./image.png") == 201
    end = time()
    print("The Perlin Flow algortihm took %ss to complete" % (end-start))


# def test_wavesGen():
#     start = time()
#     assert wavesGen.generate(2100, 1300, "#ffffff",
#                              "#242424", 10, 24, 2, "./waves.webp") == 201
#     end = time()
#     print(":\nThe Waves generation algorithm took %ss to complete" %
#           (end - start), end="")

from time import time
import defaultGen
import perlinCircleGen
import perlinFlowGen
import wavesGen


def test_defaultGen():
    start = time()
    assert defaultGen.generate(
        2100, 1300, "#ffffff", "#242424", 50, 30, 10, 100, 10, 0, "./image.png") == 201
    end = time()
    print("\nThe Default algorithm took %ss to complete" %
          (end - start))


def test_perlinCircleGen():
    start = time()
    assert perlinCircleGen.generate(
        1200, 1200, "#ffffff", "#242424", "./image.png") == 201
    end = time()
    print("The Perlin Circle algorithm took %ss to complete" %
          (end - start))


def test_perlinFlowGen():
    start = time()
    assert perlinFlowGen.generate(2100, 1300, "#ffffff", "#242424", 50, 1000, 500, 1, "./image.png") == 201
    end = time()
    print("The Perlin Flow algortihm took %ss to complete" % (end-start))


# def test_wavesGen():
#     start = time()
#     assert wavesGen.generate(2100, 1300, "#ffffff",
#                              "#242424", 10, 24, 2, "./waves.webp") == 201
#     end = time()
#     print(":\nThe Waves generation algorithm took %ss to complete" %
#           (end - start), end="")

# def test_wavesGen(): #     start = time() #     assert wavesGen.generate(2100, 1300, "#ffffff", #                              "#242424", 10, 24, 2, "./waves.webp") == 201 #     end = time() #     print(":\nThe Waves generation algorithm took %ss to complete" % #           (end - start), end="")