jaantaponen / verotunkki

FIFO based tax calculator with support for Coinbase, Coinbase Pro, Degiro & Nordnet
16 stars 5 forks source link

Sort the assertions correctly #22

Closed jaantaponen closed 2 years ago

jaantaponen commented 2 years ago

Since the FIFO transactions are now sorted according to the date and secondarily their type (BUY,SELL), the test cases need to be sorted again as well.

This should fix issues when the source data doesn't provide accurate transaction (by minutes), so an assumption is made about the order (buys first).