A test proves your code does what you meant. It cannot prove that what you meant was correct.
I could have written that sentence a year ago. I still shipped on the wrong side of it this week.
Here is the assertion I was leaning on:
assert.equal(sumOf(splits), transaction.total)
Enter fullscreen mode






