awtk/tests/guage_test.cc

13 lines
265 B
C++
Raw Normal View History

#include "base/window.h"
2019-02-26 14:00:56 +08:00
#include "guage/guage.h"
#include "gtest/gtest.h"
TEST(Guage, cast) {
widget_t* w = window_create(NULL, 0, 0, 0, 0);
widget_t* guage = guage_create(w, 0, 0, 100, 100);
ASSERT_EQ(guage, guage_cast(guage));
widget_destroy(w);
}