mirror of
https://github.com/hanzoai/numscript.git
synced 2026-10-30 18:26:57 +00:00
43 lines
881 B
JSON
43 lines
881 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/specs.schema.json",
|
|
"testCases": [
|
|
{
|
|
"it": "matches sources and destinations allotments",
|
|
"balances": {
|
|
"src1": {
|
|
"USD": 999
|
|
},
|
|
"src2": {
|
|
"USD": 999
|
|
}
|
|
},
|
|
"expect.postings": [
|
|
{
|
|
"source": "src1",
|
|
"destination": "dest1",
|
|
"amount": 8,
|
|
"asset": "USD"
|
|
},
|
|
{
|
|
"source": "src2",
|
|
"destination": "dest1",
|
|
"amount": 16,
|
|
"asset": "USD"
|
|
},
|
|
{
|
|
"source": "world",
|
|
"destination": "dest1",
|
|
"amount": 15,
|
|
"asset": "USD"
|
|
},
|
|
{
|
|
"source": "world",
|
|
"destination": "dest2",
|
|
"amount": 38,
|
|
"asset": "USD"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|