Step 174: icon system
This commit is contained in:
17
editor/tests/step174_integration_test.cpp
Normal file
17
editor/tests/step174_integration_test.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
// Step 174: Icon system integration checks.
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "IconSet.h"
|
||||
|
||||
int main() {
|
||||
ImGui::CreateContext();
|
||||
ImU32 color = IconSet::fileColor(FileIconType::Python);
|
||||
ImU32 warn = IconSet::diagnosticColor(DiagnosticIconType::Warning);
|
||||
assert(color != 0);
|
||||
assert(warn != 0);
|
||||
ImGui::DestroyContext();
|
||||
|
||||
printf("step174_integration_test: all assertions passed\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user