code: def test_planar_to_coordinates():
      projected = (0.0, 0.0)
      point = planar_to_coordinates(projected, scale=100)
      expected = (0.0, 0.0, 100.0)
      assert_array_equal(point, expected)
  
      projected = (100.0, 0.0)
      point = planar_to_coordinates(projected, scale=100)
      expected = (100.0, 0.0, 0.0)
      assert_array_equal(point, expected)
  
      projected = (40.0, 0)
      point = planar_to_coordinates(projected, scale=100)
      expected = (40.0, 0.0, 60.0)
      assert_array_equal(point, expected)
  
      projected = (10.0, SQRT3OVER2)
      point = planar_to_coordinates(projected, scale=100)
      expected = (9.5, 1.0, 89.5)
      assert_array_equal(point, expected)
  
      projected = (10.0, SQRT3OVER2)
      point = planar_to_coordinates(projected, scale=100)
      expected = (9.5, 1.0, 89.5)
      assert_array_equal(point, 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 5 for calling the FunctionCases obj's underlying member method code with example usage: obj.test_planar_to_coordinates() without return types