Update of /cvsroot/monetdb/pathfinder/runtime/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10673
Modified Files:
serialization.milS serialization.stable.out
Log Message:
Extended serialization test with (not that) new "text" mode.
Correct/desired output still needs to be verified by Jan Rittinger.
Index: serialization.stable.out
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/Tests/serialization.stable.out,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- serialization.stable.out 1 Sep 2007 17:06:53 -0000 1.13
+++ serialization.stable.out 1 Sep 2007 17:28:05 -0000 1.14
@@ -13,6 +13,7 @@
# query for all output modes (contains all different kinds)
var query := "(1, 2.3, attribute attr { \"val\" }, 3E1, \"string\",
doc(\"nodekinds.xml\")/descendant-or-self::node())";
+var query_no_attr := "(1, 2.3, 3E1, \"string\",
doc(\"nodekinds.xml\")/descendant-or-self::node())";
# current different XML modes
#
@@ -103,6 +104,39 @@
[ "&1 0 10 1 10\n% xquery.result\t# table_name\n% xml\t# name\n% varchar\t#
type\n% 60\t# length\n[ \"1\"\t]\n[ \"2.300000\"\t]\n[ \"attribute attr {
\"val\" }\"\t]\n[ \"30.000000\"\t]\n[ \"\\\"string\\\"\"\t]\n[ \"<?xml
version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\\n<elem
attr=\\\"val\\\">text<!--comment--><?pi_tgt pi_data?></elem>\\n\"\t]\n[ \"<elem
attr=\\\"val\\\">text<!--comment--><?pi_tgt pi_data?></elem>\"\t]\n[ \"text
{\\\"text\\\"}\"\t]\n[ \"<!--comment-->\"\t]\n[ \"<?pi_tgt pi_data?>\"\t]\n" ]
+# text mode w/ top-level attribute
+#
+xquery("text" ,query , 0).printf();
+= Please remove this line once the below error message has been verified as
correct/expected.
+!ERROR: 12.300000!ERROR: serialize_dflt.mx: unable to print top level
attribute nodes in text mode
+!ERROR: xquery_print_result_loop: operation failed.
+!ERROR: interpret: no matching MIL operator to 'printf(void)'.
+!MAYBE YOU MEAN:
+! printf(str, ..any..) : void
+= Please remove this line once the above error message has been verified as
correct/expected.
+
+xquery("mapi-text" ,query , 0).printf();
+= Please remove this line once the below error message has been verified as
correct/expected.
+!ERROR: =12.300000!ERROR: serialize_dflt.mx: unable to print top level
attribute nodes in text mode
+!ERROR: xquery_print_result_loop: operation failed.
+!ERROR: interpret: no matching MIL operator to 'printf(void)'.
+!MAYBE YOU MEAN:
+! printf(str, ..any..) : void
+= Please remove this line once the above error message has been verified as
correct/expected.
+
+# text mode w/o top-level attribute
+#
+xquery("text" ,query_no_attr , 0).printf();
+= Please remove this line once the below text-mode output has been verified as
correct/expected.
+12.30000030.000000string<elem attr="val">text<!--comment--><?pi_tgt
pi_data?></elem><elem attr="val">text<!--comment--><?pi_tgt
pi_data?></elem>text<!--comment--><?pi_tgt pi_data?>
+= Please remove this line once the above text-mode output has been verified as
correct/expected.
+
+xquery("mapi-text" ,query_no_attr , 0).printf();
+= Please remove this line once the below text-mode output has been verified as
correct/expected.
+=12.30000030.000000string<elem attr="val">text<!--comment--><?pi_tgt
pi_data?></elem><elem attr="val">text<!--comment--><?pi_tgt
pi_data?></elem>text<!--comment--><?pi_tgt pi_data?>
+= Please remove this line once the above text-mode output has been verified as
correct/expected.
+
+
# default mode is xml mode (it also works with mapi
# -- all other mode arguments are ignored)
#
Index: serialization.milS
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/Tests/serialization.milS,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- serialization.milS 1 Sep 2007 17:06:53 -0000 1.9
+++ serialization.milS 1 Sep 2007 17:28:05 -0000 1.10
@@ -2,6 +2,7 @@
# query for all output modes (contains all different kinds)
var query := "(1, 2.3, attribute attr { \"val\" }, 3E1, \"string\",
doc(\"nodekinds.xml\")/descendant-or-self::node())";
+var query_no_attr := "(1, 2.3, 3E1, \"string\",
doc(\"nodekinds.xml\")/descendant-or-self::node())";
# current different XML modes
#
@@ -39,6 +40,19 @@
xquery("seq" ,query , 0).print();
+# text mode w/ top-level attribute
+#
+xquery("text" ,query , 0).printf();
+
+xquery("mapi-text" ,query , 0).printf();
+
+# text mode w/o top-level attribute
+#
+xquery("text" ,query_no_attr , 0).printf();
+
+xquery("mapi-text" ,query_no_attr , 0).printf();
+
+
# default mode is xml mode (it also works with mapi
# -- all other mode arguments are ignored)
#
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins