mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
13 lines
265 B
C++
13 lines
265 B
C++
#include "base/window.h"
|
|
#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);
|
|
}
|