[temp] add : add test.py to samila/.

pull/45/head
sadrasabouri 2021-10-05 13:31:34 +03:30
rodzic 89280b5343
commit bb0146c935
1 zmienionych plików z 17 dodań i 0 usunięć

17
samila/test.py 100644
Wyświetl plik

@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
"""Basic test file."""
"""
>>> import random
>>> import math
>>> from samila import GenerativeImage
>>> def f1(x,y):
... result = random.uniform(-1,1) * x**2 - math.sin(y**2) + abs(y-x)
... return result
>>> def f2(x,y):
... result = random.uniform(-1,1) * y**3 - math.cos(x**2) + 2*x
... return result
>>> g = GenerativeImage(f1,f2)
>>> g.generate()
>>> g.plot()
"""