mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-03 13:14:22 +01:00
pylightning: adds a millisatoshi test class
This commit is contained in:
committed by
Christian Decker
parent
c0069d8944
commit
bc5add399b
6
contrib/pylightning/tests/test_millisatoshi.py
Normal file
6
contrib/pylightning/tests/test_millisatoshi.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from lightning import Millisatoshi
|
||||
|
||||
|
||||
def test_sum_radd():
|
||||
result = sum([Millisatoshi(1), Millisatoshi(2), Millisatoshi(3)])
|
||||
assert int(result) == 6
|
||||
Reference in New Issue
Block a user