diff options
| author | mokha <mokha@cisco.com> | 2019-05-11 21:54:47 -0600 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2019-05-11 21:54:47 -0600 |
| commit | 9a63fbc7fec8c6373e73aa4cfc917464fd3a5ca1 (patch) | |
| tree | b075eaf539e6155f1fe57b68694ccc365e0a8dc4 /src/Q10/TaxReturnTest.java | |
| parent | 15c247d8c7c682ed8c3e5b864c51aab5227fed75 (diff) | |
calculate a tax of 33% of unknown status
Diffstat (limited to 'src/Q10/TaxReturnTest.java')
| -rw-r--r-- | src/Q10/TaxReturnTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Q10/TaxReturnTest.java b/src/Q10/TaxReturnTest.java index bb75097..c1af186 100644 --- a/src/Q10/TaxReturnTest.java +++ b/src/Q10/TaxReturnTest.java @@ -83,4 +83,9 @@ public class TaxReturnTest extends TestCase { TaxReturn subject = new TaxReturn(350000, TaxReturn.MARRIED); assertEquals(153751.0, subject.getTax()); } + + public void test_UNKNOWN_status_Should_tax_at_33_percent() { + TaxReturn subject = new TaxReturn(100000, 3); + assertEquals(33000.0, subject.getTax()); + } } |
