From 648bef06b5756105bfcbbdc8aabaf8c2db9ea820 Mon Sep 17 00:00:00 2001 From: sadrasabouri Date: Fri, 29 Oct 2021 18:34:31 +0330 Subject: [PATCH] test : tests added. --- test/overall_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/overall_test.py b/test/overall_test.py index 6fd864d..f1583d7 100644 --- a/test/overall_test.py +++ b/test/overall_test.py @@ -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") """