Exemplo n.º 1
0
 def testIsIntegeralWithPercent(self):
     p = DvProportion(1.2, 100, ProportionKind.pk_percent, 1);
     self.assertFalse( p.is_integral(), msg="percent expected not to be integral")
Exemplo n.º 2
0
 def testIsIntegeralWithFraction(self):
     p = DvProportion(1, 2, ProportionKind.pk_fraction, 0)
     self.assertTrue(p.is_integral(), msg="fraction expected to be integral")