Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin/tests/text_format Modified Files: ewl_text_format_test.c Log Message: - tabs are a tricky beast. looks like I missed some. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text_format/ewl_text_format_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_text_format_test.c 6 May 2008 20:18:57 -0000 1.2 +++ ewl_text_format_test.c 7 May 2008 13:38:20 -0000 1.3 @@ -34,41 +34,41 @@ static int tf_apply_partial_node_text(char *buf, int len); static Ewl_Unit_Test text_fmt_unit_tests[] = { - {"New Format", tf_new, NULL, -1, 0}, - {"New NULL Text", tf_new_null_text, NULL, -1, 1}, - {"Clear Format", tf_clear, NULL, -1, 0}, - - {"Count empty", tf_count_empty, NULL, -1, 0}, - {"Count non-empty", tf_count_non_empty, NULL, -1, 0}, - - {"Prepend to empty", tf_prepend_empty, NULL, -1, 0}, - {"Prepend to non-empty", tf_prepend_non_empty, NULL, -1, 0}, - {"Append to empty", tf_append_empty, NULL, -1, 0}, - {"Append to non-empty", tf_append_non_empty, NULL, -1, 0}, - {"Insert to empty", tf_insert_empty, NULL, -1, 0}, - {"Insert to non-empty", tf_insert_non_empty, NULL, -1, 0}, - - {"Delete from empty list", tf_delete_empty, NULL, -1, 0}, - {"Delete from non-empty list", tf_delete_non_empty, NULL, -1, 0}, - {"Delete past end text", tf_delete_past_end, NULL, -1, 0}, - {"Delete all", tf_delete_all, NULL, -1, 0}, - {"Delete full node", tf_delete_full_node, NULL, -1, 0}, - {"Delete partial node", tf_delete_partial_node, NULL, -1, 0}, - - /* gets */ - /* goto's */ - - /* apply */ - {"Apply empty text", tf_apply_empty_text, NULL, -1, 0}, - {"Apply full text", tf_apply_full_text, NULL, -1, 0}, - {"Apply past end text", tf_apply_past_end_text, NULL, -1, 0}, - {"Apply full node text", tf_apply_full_node_text, NULL, -1, 0}, - {"Apply partial node text", tf_apply_partial_node_text, NULL, -1, 0}, + {"New Format", tf_new, NULL, -1, 0}, + {"New NULL Text", tf_new_null_text, NULL, -1, 1}, + {"Clear Format", tf_clear, NULL, -1, 0}, + + {"Count empty", tf_count_empty, NULL, -1, 0}, + {"Count non-empty", tf_count_non_empty, NULL, -1, 0}, + + {"Prepend to empty", tf_prepend_empty, NULL, -1, 0}, + {"Prepend to non-empty", tf_prepend_non_empty, NULL, -1, 0}, + {"Append to empty", tf_append_empty, NULL, -1, 0}, + {"Append to non-empty", tf_append_non_empty, NULL, -1, 0}, + {"Insert to empty", tf_insert_empty, NULL, -1, 0}, + {"Insert to non-empty", tf_insert_non_empty, NULL, -1, 0}, + + {"Delete from empty list", tf_delete_empty, NULL, -1, 0}, + {"Delete from non-empty list", tf_delete_non_empty, NULL, -1, 0}, + {"Delete past end text", tf_delete_past_end, NULL, -1, 0}, + {"Delete all", tf_delete_all, NULL, -1, 0}, + {"Delete full node", tf_delete_full_node, NULL, -1, 0}, + {"Delete partial node", tf_delete_partial_node, NULL, -1, 0}, + + /* gets */ + /* goto's */ + + /* apply */ + {"Apply empty text", tf_apply_empty_text, NULL, -1, 0}, + {"Apply full text", tf_apply_full_text, NULL, -1, 0}, + {"Apply past end text", tf_apply_past_end_text, NULL, -1, 0}, + {"Apply full node text", tf_apply_full_node_text, NULL, -1, 0}, + {"Apply partial node text", tf_apply_partial_node_text, NULL, -1, 0}, - /* char_to_byte */ - /* byte_to_char */ + /* char_to_byte */ + /* byte_to_char */ - {NULL, NULL, NULL, -1, 0} + {NULL, NULL, NULL, -1, 0} }; void @@ -91,8 +91,8 @@ fmt = ewl_text_fmt_new(EWL_TEXT(t)); if (!fmt) { - LOG_FAILURE(buf, len, "_new returned NULL."); - return 0; + LOG_FAILURE(buf, len, "_new returned NULL."); + return 0; } ewl_widget_destroy(t); ewl_text_fmt_destroy(fmt); @@ -107,9 +107,9 @@ fmt = ewl_text_fmt_new(NULL); if (fmt) { - LOG_FAILURE(buf, len, "_new returned fmt when Ewl_Text was NULL."); - ewl_text_fmt_destroy(fmt); - return 0; + LOG_FAILURE(buf, len, "_new returned fmt when Ewl_Text was NULL."); + ewl_text_fmt_destroy(fmt); + return 0; } return 1; } @@ -131,20 +131,20 @@ ewl_text_fmt_clear(fmt); if (ecore_dlist_count(fmt->nodes) != 0) { - LOG_FAILURE(buf, len, "_clear left items in -> nodes."); - return 0; + LOG_FAILURE(buf, len, "_clear left items in -> nodes."); + return 0; } if ((fmt->current_node.char_idx != 0) - || (fmt->current_node.byte_idx != 0)) + || (fmt->current_node.byte_idx != 0)) { - LOG_FAILURE(buf, len, "_clear didn't reset current_node values."); - return 0; + LOG_FAILURE(buf, len, "_clear didn't reset current_node values."); + return 0; } if ((fmt->length.char_len != 0) - || (fmt->length.byte_len != 0)) + || (fmt->length.byte_len != 0)) { - LOG_FAILURE(buf, len, "_clear didn't reset length values."); - return 0; + LOG_FAILURE(buf, len, "_clear didn't reset length values."); + return 0; } ewl_text_fmt_destroy(fmt); @@ -164,8 +164,8 @@ if (ewl_text_fmt_node_count_get(fmt) != 0) { - LOG_FAILURE(buf, len, "_count returned non-zero on blank list."); - return 0; + LOG_FAILURE(buf, len, "_count returned non-zero on blank list."); + return 0; } return 1; } ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs