Files
Alessandro ScandoneandGitHub a804f6edf1 feat: color as first class citizen (#160)
reworked balances representation (both internal and external) so that it handles colors as an ad-hoc field instead of relying of string convetions
2026-06-15 15:13:22 +02:00

61 lines
1.1 KiB
JSON

{
"testCases": [
{
"it": "-",
"balances": [
{
"account": "a",
"asset": "COIN",
"amount": 1000
},
{
"account": "b",
"asset": "COIN",
"amount": 40
},
{
"account": "c",
"asset": "COIN",
"amount": 1000
},
{
"account": "d",
"asset": "COIN",
"amount": 1000
},
{
"account": "maxAcc",
"asset": "COIN",
"amount": 120
}
],
"expect.postings": [
{
"source": "a",
"destination": "platform",
"amount": 4,
"asset": "COIN"
},
{
"source": "b",
"destination": "platform",
"amount": 40,
"asset": "COIN"
},
{
"source": "c",
"destination": "platform",
"amount": 56,
"asset": "COIN"
},
{
"source": "d",
"destination": "platform",
"amount": 100,
"asset": "COIN"
}
]
}
]
}