add more tests

This commit is contained in:
callebtc
2022-10-16 13:36:29 +02:00
parent 8eafa828ea
commit 3094f7739f
2 changed files with 5 additions and 5 deletions

5
tests/test_core.py Normal file
View File

@@ -0,0 +1,5 @@
from cashu.core.split import amount_split
def test_get_output_split():
assert amount_split(13) == [1, 4, 8]

View File

@@ -112,8 +112,3 @@ async def test_generate_promises(ledger: Ledger):
promises[0].C_
== "032dfadd74bb3abba8170ecbae5401507e384eafd312defda94148fa37314c0ef0"
)
@pytest.mark.asyncio
async def test_get_output_split(ledger: Ledger):
assert ledger._get_output_split(13) == [1, 4, 8]