Skip to content

Commit

Permalink
Update ledger canonical-data.json (#2355)
Browse files Browse the repository at this point in the history
Change dates to match with description
  • Loading branch information
glaxxie authored Dec 19, 2023
1 parent 0f7a7f8 commit 2801085
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions exercises/ledger/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,34 @@
"Date | Description | Change ",
"03/12/2015 | Buy present | ($123.45)"
]
},
{
"uuid": "9c70709f-cbbd-4b3b-b367-81d7c6101de4",
"reimplements": "502c4106-0371-4e7c-a7d8-9ce33f16ccb1",
"description": "multiple entries on same date ordered by description",
"comments": ["Input entries' dates changed to match each other"],
"property": "formatEntries",
"input": {
"currency": "USD",
"locale": "en_US",
"entries": [
{
"date": "2015-01-01",
"description": "Get present",
"amountInCents": 1000
},
{
"date": "2015-01-01",
"description": "Buy present",
"amountInCents": -1000
}
]
},
"expected": [
"Date | Description | Change ",
"01/01/2015 | Buy present | ($10.00)",
"01/01/2015 | Get present | $10.00 "
]
}
]
}

0 comments on commit 2801085

Please sign in to comment.