mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 03:54:21 +01:00
add more tests
This commit is contained in:
5
tests/test_core.py
Normal file
5
tests/test_core.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from cashu.core.split import amount_split
|
||||
|
||||
|
||||
def test_get_output_split():
|
||||
assert amount_split(13) == [1, 4, 8]
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user