aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src/test
diff options
context:
space:
mode:
authorSeth Alves <alves@src.gnome.org>2000-02-21 21:19:28 +0800
committerSeth Alves <alves@src.gnome.org>2000-02-21 21:19:28 +0800
commitc2e1263462c84bfae59a3f296758296ac3a10a67 (patch)
tree56965c52067222cac0199e2a09d33ef93b0dcb4d /libical/src/test
parentc69d6adfcd4b6ef04cae78c87f2328b8debb13bb (diff)
downloadgsoc2013-evolution-c2e1263462c84bfae59a3f296758296ac3a10a67.tar
gsoc2013-evolution-c2e1263462c84bfae59a3f296758296ac3a10a67.tar.gz
gsoc2013-evolution-c2e1263462c84bfae59a3f296758296ac3a10a67.tar.bz2
gsoc2013-evolution-c2e1263462c84bfae59a3f296758296ac3a10a67.tar.lz
gsoc2013-evolution-c2e1263462c84bfae59a3f296758296ac3a10a67.tar.xz
gsoc2013-evolution-c2e1263462c84bfae59a3f296758296ac3a10a67.tar.zst
gsoc2013-evolution-c2e1263462c84bfae59a3f296758296ac3a10a67.zip
This commit was generated by cvs2svn to compensate for changes in r1879,
which included commits to RCS files with non-trunk default branches. svn path=/trunk/; revision=1880
Diffstat (limited to 'libical/src/test')
-rw-r--r--libical/src/test/regression.c40
1 files changed, 33 insertions, 7 deletions
diff --git a/libical/src/test/regression.c b/libical/src/test/regression.c
index 822de6b22c..a969022d98 100644
--- a/libical/src/test/regression.c
+++ b/libical/src/test/regression.c
@@ -1237,15 +1237,38 @@ void test_duration()
printf("%s\n",icalvalue_as_ical_string(v));
+ icalvalue_free(v);
v = icalvalue_new_from_string(ICAL_PERIOD_VALUE,
"19971015T050000Z/PT8H30M");
printf("%s\n",icalvalue_as_ical_string(v));
+ icalvalue_free(v);
v = icalvalue_new_from_string(ICAL_PERIOD_VALUE,
"19971015T050000Z/19971015T060000Z");
printf("%s\n",icalvalue_as_ical_string(v));
+ icalvalue_free(v);
+
+
+}
+
+
+void test_strings(){
+
+ icalvalue *v;
+
+ v = icalvalue_new_text("foo;bar;bats");
+
+ printf("%s\n",icalvalue_as_ical_string(v));
+
+ icalvalue_free(v);
+
+ v = icalvalue_new_text("foo\\;b\nar\\;ba\tts");
+
+ printf("%s\n",icalvalue_as_ical_string(v));
+
+ icalvalue_free(v);
}
@@ -1253,25 +1276,28 @@ void test_duration()
int main(int argc, char *argv[])
{
+
+ printf("\n------------Test strings---------------\n");
+ test_strings();
+
+exit(0);
+
+ printf("\n------------Test recur---------------\n");
+ test_recur();
+
#if 0
printf("\n------------Test Calendar---------------\n");
test_calendar();
printf("\n------------Test Store---------------\n");
test_store();
+#endif
printf("\n------------Test duration---------------\n");
test_duration();
-#endif
-
- printf("\n------------Test recur---------------\n");
- test_recur();
-
-exit(0);
-
printf("\n------------Test Restriction---------------\n");
test_restriction();