Ejemplo n.º 1
0
 def test_00(self):
     """TestTrackGenLines.test_00(): genLinear10() line widths."""
     wS = [s.width for s, p in Track.genLinear10(4.0, 8.0)]
     #print()
     #pprint.pprint(wS)
     self.assertEqual(
         [0.75, 0.25, 0.25, 0.25, 0.25, 0.5, 0.25, 0.25, 0.25, 0.25, 0.75],
         wS,
     )
Ejemplo n.º 2
0
 def test_02(self):
     """TestTrackGenLines.test_02(): genLinear10() line spacing."""
     pS = [p for s, p in Track.genLinear10(120.0, 40.0)]
     #print()
     #pprint.pprint(pS)
     self.assertEqual(11, len(pS))
     self.assertEqual(
         list(reversed([40.0, 48.0, 56.0, 64.0, 72.0, 80.0, 88.0, 96.0, 104.0, 112.0, 120.0])),
         pS,
     )