diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-10-18 13:49:24 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-10-18 13:49:24 +0200 |
commit | 7b3b68462e039d540ad029d94c3b8fb876887472 (patch) | |
tree | b0e15e39e0c38e2bd240a79c01ad7d9459223fdf /test | |
parent | 2c0c3c675aae8283d79a61d151fa0aaa9d438182 (diff) |
Fix memory leak in box and listview widget, add coverage make target. (ggcov and lcov)
Diffstat (limited to 'test')
-rw-r--r-- | test/widget-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/widget-test.c b/test/widget-test.c index 16c51c78..109197cb 100644 --- a/test/widget-test.c +++ b/test/widget-test.c @@ -20,6 +20,10 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) widget *wid= (widget*)g_malloc0(sizeof(widget)); widget_resize ( wid, 20, 40); widget_move ( wid, 10, 10); + // Getter, setter x pos + // + TASSERT( widget_get_x_pos ( wid ) == 10 ); + TASSERT( widget_get_y_pos ( wid ) == 10 ); // Left of box TASSERT ( widget_intersect ( wid, 0, 0) == 0 ); |