From 6766ae0002de4af8915c2b5fa8e07fcfe5617e23 Mon Sep 17 00:00:00 2001 From: Benjamin Bertrand Date: Tue, 22 Mar 2016 09:29:11 +0300 Subject: [PATCH] Add a docstest for this bug --- pymath/calculus/abstract_polynom.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pymath/calculus/abstract_polynom.py b/pymath/calculus/abstract_polynom.py index 0859ff1..4ca2c3a 100644 --- a/pymath/calculus/abstract_polynom.py +++ b/pymath/calculus/abstract_polynom.py @@ -406,6 +406,11 @@ class AbstractPolynom(Explicable): 7 >>> c.steps [< Step [2, 2, *, 3, +]>, < Step [4, 3, +]>, < Step [4, 3, +]>, < Step [7]>] + >>> c = AbstractPolynom.smpl_coef_list([0, 2, 0]) + >>> c + 2 + >>> c.steps + [< Step [2]>] """ # Simplify each element before adding them smpl_elem = []