Feat: add doctest add int and Decimal

This commit is contained in:
Bertrand Benjamin 2019-10-15 19:15:32 +02:00
parent 43fd46379c
commit 2a74722b19

View File

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