Feat: add doctest add int and Decimal

This commit is contained in:
Bertrand Benjamin 2019-10-15 19:15:32 +02:00
parent 0abd80655a
commit 25bfb7699b
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ def monumber_monumber(left, right):
>>> b = MOnumber(6) >>> b = MOnumber(6)
>>> add(a, b) >>> add(a, b)
<MOnumber 10> <MOnumber 10>
>>> b = MOnumber('2.3')
>>> add(a, b)
<MOnumber 6.3>
""" """
return MO.factory(left.value + right.value) return MO.factory(left.value + right.value)