From 2a74722b19d3da0040fd7ef0218b09a2083c7d09 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Tue, 15 Oct 2019 19:15:32 +0200 Subject: [PATCH] Feat: add doctest add int and Decimal --- mapytex/calculus/core/compute/add.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mapytex/calculus/core/compute/add.py b/mapytex/calculus/core/compute/add.py index db0c0be..9a6cc6a 100644 --- a/mapytex/calculus/core/compute/add.py +++ b/mapytex/calculus/core/compute/add.py @@ -70,6 +70,9 @@ def monumber_monumber(left, right): >>> b = MOnumber(6) >>> add(a, b) + >>> b = MOnumber('2.3') + >>> add(a, b) + """ return MO.factory(left.value + right.value)