Feat: add doctest add int and Decimal
This commit is contained in:
parent
0abd80655a
commit
25bfb7699b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user