From b8fd2ce7382ad6c4616918af3f9a22f38f84612d Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 21 Oct 2016 20:21:53 +0200 Subject: Add two more cases to the test. --- test/box-test.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/box-test.c') diff --git a/test/box-test.c b/test/box-test.c index ef305dd3..909943dd 100644 --- a/test/box-test.c +++ b/test/box-test.c @@ -79,6 +79,11 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) widget_resize ( WIDGET ( wid4 ), 20, 20 ); box_add ( b , WIDGET( wid4 ), FALSE, TRUE ); TASSERTE ( wid4->x, 200-20); + widget *wid5 = g_malloc0(sizeof(widget)); + widget_enable ( WIDGET ( wid5 ) ); + widget_resize ( WIDGET ( wid5 ), 20, 20 ); + box_add ( b , WIDGET( wid5 ), TRUE, TRUE ); + TASSERTE ( wid5->x, 200-20-20-6); widget_free ( WIDGET ( b ) ); } { @@ -134,6 +139,11 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) widget_resize ( WIDGET ( wid4 ), 20, 20 ); box_add ( b , WIDGET( wid4 ), FALSE, TRUE ); TASSERTE ( wid4->y, 200-20); + widget *wid5 = g_malloc0(sizeof(widget)); + widget_enable ( WIDGET ( wid5 ) ); + widget_resize ( WIDGET ( wid5 ), 20, 20 ); + box_add ( b , WIDGET( wid5 ), TRUE, TRUE ); + TASSERTE ( wid5->y, 200-20-20-6); widget_free ( WIDGET ( b ) ); } } -- cgit v1.2.3