Feat: add doctest add int and Decimal
This commit is contained in:
parent
43fd46379c
commit
2a74722b19
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user