Example #1
0
 def test_get_indices_quad(self):
     COLOR1 = (11, 22, 33, 44)
     self.assertEqual(
         get_indices( [
             (COLOR1, [(1, 2), (3, 4), (5, 6), (7, 8)]),
         ] ),
         [0, 1, 2, 0, 2, 3]
     )
Example #2
0
 def test_get_indices_triangle(self):
     COLOR1 = (11, 22, 33, 44)
     self.assertEqual(
         get_indices( [
             (COLOR1, [(1, 2), (3, 4), (5, 6)]),
         ] ),
         [0, 1, 2]
     )