text: require 'minitest_helper'
  
  class TestMeshFaceSanityCheck < Minitest::Test
    def test_that_it_works
      scene = Mittsu::Scene.new
      camera = Mittsu::PerspectiveCamera.new(75.0, 1.0, 0.1, 1000.0)
  
      renderer = Mittsu::OpenGLRenderer.new width: 100, height: 100, title: 'TestMeshFaceSanityCheck'
  
      geometry = Mittsu::BoxGeometry.new(1.0, 1.0, 1.0)
      material = Mittsu::MeshFaceMaterial.new([
        Mittsu::MeshBasicMaterial.new(color: 0x0046AD), # blue
        Mittsu::MeshBasicMaterial.new(color: 0x009B48), # green
        Mittsu::MeshBasicMaterial.new(color: 0xFFFFFF), # white
        Mittsu::MeshBasicMaterial.new(color: 0xFFD500), # yellow
        Mittsu::MeshBasicMaterial.new(color: 0xF55500), # orange
        Mittsu::MeshBasicMaterial.new(color: 0xB71234), # red
      ])
      cube = Mittsu::Mesh.new(geometry, material)
      scene.add(cube)
  
      camera.position.z = 5.0
  
      renderer.window.run do
        cube.rotation.x += 0.1
        cube.rotation.y += 0.1
        renderer.render(scene, camera)
      end
    end
  end
  