Files
numscript/internal/interpreter/testdata/numscript-cookbook/mixed-source-dest-allotment.num.specs.json
Alessandro ScandoneandGitHub e58c2c09e8 fix: properly version json schemas (#171)
* fix: update schemas

* fix: update the schema of new specs file generator

* fix: update specs $schema field to the new one
2026-07-10 10:49:32 +02:00

47 lines
984 B
JSON

{
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/v1.specs.schema.json",
"testCases": [
{
"it": "matches sources and destinations allotments",
"balances": [
{
"account": "src1",
"asset": "USD",
"amount": 999
},
{
"account": "src2",
"asset": "USD",
"amount": 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"
}
]
}
]
}