示例#1
0
 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)
示例#2
0
 def test_highest(self):
     self.assertEqual(syntax.tax_calc(110000000), 36279296.57)
示例#3
0
 def test_m3(self):
     self.assertEqual(syntax.tax_calc(130000), 25940.66)
示例#4
0
 def test_m2(self):
     self.assertEqual(syntax.tax_calc(85000), 14619)
示例#5
0
 def test_m1(self):
     self.assertEqual(syntax.tax_calc(60000), 9619.0)
示例#6
0
 def test_lowest(self):
     self.assertEqual(syntax.tax_calc(500), 75)