From 7f8939eab2042c3bfc3368565f858467090405d5 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Fri, 21 Aug 2020 19:07:34 +0200 Subject: [PATCH] Test: separate expression build and showing it --- mapytex/calculus/API/expression.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mapytex/calculus/API/expression.py b/mapytex/calculus/API/expression.py index a7f7eb3..4ac4857 100644 --- a/mapytex/calculus/API/expression.py +++ b/mapytex/calculus/API/expression.py @@ -136,9 +136,11 @@ class Expression(object): :returns: TODO :example: - >>> Expression.random("{a}/{a*k}") # doctest: +SKIP + >>> e = Expression.random("{a}/{a*k}") + >>> e # doctest: +SKIP - >>> Expression.random("{a}/{a*k} - 3*{b}", variables_scope={'a':{'min_max':(10, 30)}}) # doctest: +SKIP + >>> e = Expression.random("{a}/{a*k} - 3*{b}", variables_scope={'a':{'min_max':(10, 30)}}) + >>> e # doctest: +SKIP >>> e = Expression.random("{a}*x + {b}*x + 3", ["a>b"], rejected=[0, 1]) >>> ee = e.simplify()