Ejemplo n.º 1
0
 def test_roundDeltas_gvar(self):
     var = TupleVariation({}, [(55.5, 100.0), None, (99.9, 100.0)])
     var.roundDeltas()
     self.assertEqual(var.coordinates, [(56, 100), None, (100, 100)])
Ejemplo n.º 2
0
 def test_roundDeltas_cvar(self):
     var = TupleVariation({}, [55.5, None, 99.9])
     var.roundDeltas()
     self.assertEqual(var.coordinates, [56, None, 100])