def test_tax_calc(self): self.assertEqual(syntax.tax_calc(11000), 0) self.assertEqual(syntax.tax_calc(47000), 7050) self.assertEqual(syntax.tax_calc(50000), 7630.85) self.assertEqual(syntax.tax_calc(100000), 18141.66) self.assertEqual(syntax.tax_calc(150000), 31211.57) self.assertEqual(syntax.tax_calc(250000), 61796.57)
def test_highest(self): self.assertEqual(syntax.tax_calc(110000000), 36279296.57)
def test_m3(self): self.assertEqual(syntax.tax_calc(130000), 25940.66)
def test_m2(self): self.assertEqual(syntax.tax_calc(85000), 14619)
def test_m1(self): self.assertEqual(syntax.tax_calc(60000), 9619.0)
def test_lowest(self): self.assertEqual(syntax.tax_calc(500), 75)