Page MenuHomePhorge

No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/c++/lib/test.php b/c++/lib/test.php
index 27ca971..7a5e36b 100644
--- a/c++/lib/test.php
+++ b/c++/lib/test.php
@@ -1,20 +1,21 @@
//run using "php -d enable_dl=On -d extension=./kolabformat.so test.php"
<?php
include("kolabformat.php");
$e = new Event();
$d = new c_DateTime(1,1,1);
print $e->exceptionDates()->size();
$e->addExceptionDate( $d);
print $e->exceptionDates()->size();
$string = writeEvent($e);
print $string;
$e1 = readEvent($string, false);
-
+$string = writeEvent($e1);
+print $string;
?>
diff --git a/c++/lib/test.py b/c++/lib/test.py
index 821bc94..5bc9799 100644
--- a/c++/lib/test.py
+++ b/c++/lib/test.py
@@ -1,10 +1,16 @@
import kolabformat
e = kolabformat.Event()
ex = e.exceptionDates()
ex.size()
ex.push_back(kolabformat.DateTime(1,1,1))
ex.size()
e.exceptionDates().size()
e.setExceptionDates(ex)
e.exceptionDates().size()
+
+string = kolabformat.writeEvent(e);
+print string;
+e1 = kolabformat.readEvent(string, False);
+string = kolabformat.writeEvent(e1);
+print string;
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Sun, Apr 5, 10:37 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831448
Default Alt Text
(1 KB)

Event Timeline