code: def test_simplex_iterator(self):
      scale = 0
      expected = [(0, 0, 0)]
      points = list(simplex_iterator(scale=scale))
      self.assertEqual(points, expected)
  
      scale = 1
      expected = [(0, 0, 1), (0, 1, 0), (1, 0, 0)]
      points = list(simplex_iterator(scale=scale))
      self.assertEqual(points, expected)
  
      scale = 2
      expected = [
          (0, 0, 2),
          (0, 1, 1),
          (0, 2, 0),
          (1, 0, 1),
          (1, 1, 0),
          (2, 0, 0),
      ]
      points = list(simplex_iterator(scale=scale))
      self.assertEqual(points, expected)
  
      scale = 3
      expected = [
          (0, 0, 3),
          (0, 1, 2),
          (0, 2, 1),
          (0, 3, 0),
          (1, 0, 2),
          (1, 1, 1),
          (1, 2, 0),
          (2, 0, 1),
          (2, 1, 0),
          (3, 0, 0),
      ]
      points = list(simplex_iterator(scale=scale))
      self.assertEqual(points, expected)
  
file_path: python-ternary/tests/test_helpers.py
imports: import random
  import unittest
  from numpy.testing import assert_array_equal, assert_array_almost_equal
  from ternary.helpers import normalize, project_point, planar_to_coordinates, simplex_iterator, SQRT3OVER2
label_desc: Use image node_id 2 for calling the FunctionCases obj's underlying member method code with example usage: obj.test_simplex_iterator() without return types