(Medium) - The Code You Write Should Only Suck Less Than The One Before
View original- current
This article is too short to summarise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| QUnit.test("$0 Loan Amount", function (assert) { | |
| const interestToPay = interestToPayForCents(0 /*loanAmount*/); | |
| strictEqual({ expected: 0, actual: interestToPay }, assert); | |
| }); | |
| QUnit.test("$1 Loan Amount", function (assert) { | |
| const interestToPay = interestToPayForCents(100 /*loanAmount*/); | |
| strictEqual({ expected: 0, actual: interestToPay }, assert); | |
| }); | |
| QUnit.test("$2 Loan Amount", function (assert) { | |
| const interestToPay = interestToPayForCents(200 /*loanAmount*/); | |
| strictEqual({ expected: 0, actual: interestToPay }, assert); | |
| }); |