recently, I have done a lot of financial projects and found that sometimes there are always some small loopholes, leading to data confusion, such as calculating dividends and credits for users according to certain rules. If the calculation is wrong, the data of all users will be affected.
fortunately, the usage of the project is not too much, which can be solved by backup and recovery.
this leads to more consideration.
how can we better ensure that financial data are not wrong? Can testing solve this problem well? Or how can we test for errors in financial calculations? Can you give me an example?
if there is a problem, how can I fix it?