Browse Source

Fix compilation of basis unit test

Hugo Locurcio 2 năm trước cách đây
mục cha
commit
d1c8c5dd30
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      main/tests/test_basis.cpp

+ 3 - 3
main/tests/test_basis.cpp

@@ -315,11 +315,11 @@ void test_euler_conversion() {
 	}
 	}
 }
 }
 
 
-void check_test(std::string test_case_name, bool condition) {
+void check_test(const char *test_case_name, bool condition) {
 	if (!condition) {
 	if (!condition) {
-		OS::get_singleton()->print("FAILED - %s\n", test_case_name.c_str());
+		OS::get_singleton()->print("FAILED - %s\n", test_case_name);
 	} else {
 	} else {
-		OS::get_singleton()->print("PASSED - %s\n", test_case_name.c_str());
+		OS::get_singleton()->print("PASSED - %s\n", test_case_name);
 	}
 	}
 }
 }