Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/etox
Dir : e17/libs/etox/test
Modified Files:
tests.c tests.h
Log Message:
Filled out etox_insert_text and abstracted some common line operations. If
you run into issues, please let me know. These functions could use more
testing.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/test/tests.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- tests.c 27 Jul 2003 05:27:09 -0000 1.10
+++ tests.c 31 Jul 2003 21:39:30 -0000 1.11
@@ -9,6 +9,7 @@
l = evas_list_append(l, test_basic_set);
l = evas_list_append(l, test_basic_append);
l = evas_list_append(l, test_basic_prepend);
+ l = evas_list_append(l, test_basic_insert);
return l;
}
@@ -113,6 +114,28 @@
/* Change test etox */
etox_prepend_text(e_test, string);
+
+ return;
+}
+
+void test_basic_insert()
+{
+ char msg[] =
+ "Text can be appended to the text already existent\n"
+ "in the etox.\n"
+ "\n"
+ "The second paragraph shown below was appended\n"
+ "at the end of the etox through etox_append_text.\n";
+
+ char string[] =
+ "The Tao that is seen\n"
+ "Is not the true Tao\n" "Until you bring fresh toner.\n" "\n";
+
+ /* Change message */
+ etox_set_text(e_msg, msg);
+
+ /* Change test etox */
+ etox_insert_text(e_test, string, 20);
return;
}
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/test/tests.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- tests.h 27 Jul 2003 05:27:09 -0000 1.7
+++ tests.h 31 Jul 2003 21:39:30 -0000 1.8
@@ -10,6 +10,7 @@
void test_basic_set();
void test_basic_append();
void test_basic_prepend();
+void test_basic_insert();
/*
* Style tests prototypes
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs