Refactor yaze_test

This commit is contained in:
scawful
2024-08-24 23:26:50 -04:00
parent a97487fd2c
commit b2b3056ddd
4 changed files with 17 additions and 18 deletions

View File

@@ -1,5 +1,7 @@
#define SDL_MAIN_HANDLED
#include "yaze.h"
#include <SDL.h>
#include <gtest/gtest.h>
@@ -16,6 +18,18 @@
#include "imgui_test_engine/imgui_te_imconfig.h"
#include "test/integration/test_editor.h"
namespace yaze {
namespace test {
TEST(YazeCLibTest, InitializeAndCleanup) {
yaze_flags flags;
yaze_init(&flags);
yaze_cleanup(&flags);
}
} // namespace test
} // namespace yaze
int main(int argc, char* argv[]) {
absl::InitializeSymbolizer(argv[0]);