Files
numscript/internal/interpreter/testdata/script-tests/nested-remaining-complex.num.specs.json
Alessandro ScandoneandGitHub 5dfc34cd3c feat: feature flag syntax (#120)
* feat: feature flag syntax

* feat: change syntax

* feat: reject invalid features

* feat: add static check of unknown features

* feat: more defensive args handling

* fix: fix typo
2026-03-04 13:32:35 +00:00

39 lines
815 B
JSON

{
"testCases": [
{
"it": "-",
"balances": {
"orders:1234": {
"EUR/2": 10000
}
},
"expect.postings": [
{
"source": "orders:1234",
"destination": "platform:commission:sales_tax",
"amount": 300,
"asset": "EUR/2"
},
{
"source": "orders:1234",
"destination": "users:1234:cashback",
"amount": 60,
"asset": "EUR/2"
},
{
"source": "orders:1234",
"destination": "platform:commission:revenue",
"amount": 1140,
"asset": "EUR/2"
},
{
"source": "orders:1234",
"destination": "merchants:6789",
"amount": 8500,
"asset": "EUR/2"
}
]
}
]
}