awtk/tests/gauge_test.cc
2021-04-07 17:11:44 +08:00

14 lines
284 B
C++

#include "base/window.h"
#include "gauge/gauge.h"
#include "gtest/gtest.h"
TEST(Guage, cast) {
widget_t* w = window_create(NULL, 0, 0, 0, 0);
widget_t* gauge = gauge_create(w, 0, 0, 100, 100);
ASSERT_EQ(gauge, gauge_cast(gauge));
widget_destroy(w);
idle_dispatch();
}