From 2a91b66bfa920c8a5f2c9f64f2be2997a500749b Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 28 Jul 2015 21:54:08 +0200 Subject: Remove trailing whitespaces --- test/helper-test.c | 2 +- test/history-test.c | 4 ++-- test/textbox-test.c | 58 ++++++++++++++++++++++++++--------------------------- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/test/helper-test.c b/test/helper-test.c index 1ea9dd4a..bbebd7b7 100644 --- a/test/helper-test.c +++ b/test/helper-test.c @@ -26,6 +26,6 @@ int main ( int argc, char ** argv ) TASSERT ( strcmp(list[3], "bash") == 0 ); TASSERT ( strcmp(list[4], "-c") == 0 ); TASSERT ( strcmp(list[5], "ssh chuck; echo 'x-terminal-emulator chuck'") == 0 ); - + g_strfreev(list); } diff --git a/test/history-test.c b/test/history-test.c index 199f0443..c72ba8a0 100644 --- a/test/history-test.c +++ b/test/history-test.c @@ -27,7 +27,7 @@ static void history_test( void ) TASSERT ( retv == NULL ); TASSERT ( length == 0 ); - // 1 item + // 1 item history_set( file, "aap"); retv = history_get_list ( file, &length); @@ -48,7 +48,7 @@ static void history_test( void ) TASSERT ( retv == NULL ); TASSERT ( length == 0 ); - // 2 items + // 2 items history_set( file, "aap"); history_set( file, "aap"); diff --git a/test/textbox-test.c b/test/textbox-test.c index 026f6309..b44199c0 100644 --- a/test/textbox-test.c +++ b/test/textbox-test.c @@ -75,22 +75,22 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) TASSERT( mw != None ); // Set alternate row to normal row. config.menu_bg_alt = config.menu_bg; - textbox_setup ( &vinfo, map ); + textbox_setup ( &vinfo, map ); textbox *box = textbox_create(mw , &vinfo, map, TB_EDITABLE|TB_AUTOWIDTH|TB_AUTOHEIGHT, 0,0, -1, -1, NORMAL, "test"); TASSERT( box != NULL ); textbox_cursor_end ( box ); - TASSERT ( box->cursor == 4); + TASSERT ( box->cursor == 4); textbox_cursor ( box, -1 ); - TASSERT ( box->cursor == 0 ); + TASSERT ( box->cursor == 0 ); textbox_cursor ( box, 8 ); - TASSERT ( box->cursor == 4 ); + TASSERT ( box->cursor == 4 ); textbox_cursor ( box, 2 ); - TASSERT ( box->cursor == 2 ); + TASSERT ( box->cursor == 2 ); textbox_insert ( box, 3, "bo"); - TASSERT ( strcmp(box->text, "tesbot") == 0 ); + TASSERT ( strcmp(box->text, "tesbot") == 0 ); textbox_cursor_end ( box ); - TASSERT ( box->cursor == 6); + TASSERT ( box->cursor == 6); TASSERT( textbox_get_width( box) > 0 ); TASSERT( textbox_get_height( box) > 0 ); @@ -101,48 +101,48 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv ) TASSERT( textbox_get_estimated_char_width ( ) > 0 ); textbox_cursor_bkspc ( box ); - TASSERT ( strcmp(box->text, "tesbo") == 0 ); - TASSERT ( box->cursor == 5); + TASSERT ( strcmp(box->text, "tesbo") == 0 ); + TASSERT ( box->cursor == 5); textbox_cursor_dec ( box ); - TASSERT ( box->cursor == 4); + TASSERT ( box->cursor == 4); textbox_cursor_del ( box ); - TASSERT ( strcmp(box->text, "tesb") == 0 ); + TASSERT ( strcmp(box->text, "tesb") == 0 ); textbox_cursor_dec ( box ); - TASSERT ( box->cursor == 3); + TASSERT ( box->cursor == 3); textbox_cursor_inc ( box ); - TASSERT ( box->cursor == 4); + TASSERT ( box->cursor == 4); textbox_cursor_inc ( box ); - TASSERT ( box->cursor == 4); + TASSERT ( box->cursor == 4); // Cursor after delete section. textbox_delete ( box, 0, 1 ); - TASSERT ( strcmp(box->text, "esb") == 0 ); - TASSERT ( box->cursor == 3); + TASSERT ( strcmp(box->text, "esb") == 0 ); + TASSERT ( box->cursor == 3); // Cursor before delete. textbox_text( box, "aap noot mies"); - TASSERT ( strcmp(box->text, "aap noot mies") == 0 ); + TASSERT ( strcmp(box->text, "aap noot mies") == 0 ); textbox_cursor( box, 3 ); - TASSERT ( box->cursor == 3); + TASSERT ( box->cursor == 3); textbox_delete ( box, 3, 6 ); - TASSERT ( strcmp(box->text, "aapmies") == 0 ); - TASSERT ( box->cursor == 3); + TASSERT ( strcmp(box->text, "aapmies") == 0 ); + TASSERT ( box->cursor == 3); // Cursor within delete textbox_text( box, "aap noot mies"); - TASSERT ( strcmp(box->text, "aap noot mies") == 0 ); + TASSERT ( strcmp(box->text, "aap noot mies") == 0 ); textbox_cursor( box, 5 ); - TASSERT ( box->cursor == 5); + TASSERT ( box->cursor == 5); textbox_delete ( box, 3, 6 ); - TASSERT ( strcmp(box->text, "aapmies") == 0 ); - TASSERT ( box->cursor == 3); - // Cursor after delete. + TASSERT ( strcmp(box->text, "aapmies") == 0 ); + TASSERT ( box->cursor == 3); + // Cursor after delete. textbox_text( box, "aap noot mies"); - TASSERT ( strcmp(box->text, "aap noot mies") == 0 ); + TASSERT ( strcmp(box->text, "aap noot mies") == 0 ); textbox_cursor( box, 11 ); - TASSERT ( box->cursor == 11); + TASSERT ( box->cursor == 11); textbox_delete ( box, 3, 6 ); - TASSERT ( strcmp(box->text, "aapmies") == 0 ); - TASSERT ( box->cursor == 5); + TASSERT ( strcmp(box->text, "aapmies") == 0 ); + TASSERT ( box->cursor == 5); textbox_font ( box, HIGHLIGHT ); -- cgit v1.2.3