test.hpp 617 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef glm_test_included
  2. #define glm_test_included
  3. #include <string>
  4. namespace glm{
  5. namespace test
  6. {
  7. class test
  8. {
  9. enum result
  10. {
  11. PASSED,
  12. FAILED,
  13. ASSERT,
  14. STATIC,
  15. MAX
  16. };
  17. public:
  18. test(std::string const & Name, std::size_t const & Count);
  19. result & operator[](std::size_t const & Index);
  20. result const & operator[](std::size_t const & Index) const;
  21. static int get(result const Result) const;
  22. static void log(test const & Test);
  23. protected:
  24. std::string Name;
  25. std::vertor<result> Tests;
  26. static test Result[MAX];
  27. };
  28. }//namespace test
  29. }//namespace glm
  30. #endif//glm_test_included