test : tests added.

pull/67/head
sadrasabouri 2021-10-29 18:34:31 +03:30
rodzic 061bb3d1af
commit 648bef06b5
1 zmienionych plików z 11 dodań i 0 usunięć

Wyświetl plik

@ -90,6 +90,17 @@ False
>>> result = g.save_data(file_adr="")
>>> result["status"]
False
>>> def f1(x, y):
... return math.cos(x**2*y) ** 1.926 - math.floor(x-y) ** 1.861 - math.floor(y**2*x)**1.688
>>> def f2(x, y):
... return x - y**1.617 - math.ceil(y) ** 1.477 - abs(x**2 * y) ** 1.647 - math.cos(x*y)**1.668
>>> g = GenerativeImage(f1, f2)
>>> g.generate(seed=755398)
>>> result = g.save_data()
>>> result["status"]
True
>>> os.remove("test.png")
>>> os.remove("test2.png")
>>> os.remove("data.json")
"""