Changeset: 96cb82fbc45e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=96cb82fbc45e
Modified Files:
        monetdb5/extras/jaql/Tests/json01.stable.err
        monetdb5/extras/jaql/Tests/json01.stable.out
Branch: jacqueline
Log Message:

add missing outputs for json01 test


diffs (91 lines):

diff --git a/monetdb5/extras/jaql/Tests/json01.stable.err 
b/monetdb5/extras/jaql/Tests/json01.stable.err
new file mode 100644
--- /dev/null
+++ b/monetdb5/extras/jaql/Tests/json01.stable.err
@@ -0,0 +1,31 @@
+stderr of test 'json01` in directory 'extras/jaql` itself:
+
+
+# 11:30:33 >  
+# 11:30:33 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"gdk_dbfarm=/net/sofia.ins.cwi.nl/export/scratch1/fabian/tmp/mtest-jacqueline-sofia.ins.cwi.nl/five/dbfarm"
 "--set" "mapi_open=true" "--set" "mapi_port=33964" "--set" "monet_prompt=" 
"--trace" "--forcemito" "--set" "mal_listing=2" "--dbname=mTests_extras_jaql" 
"json01.mal"
+# 11:30:33 >  
+
+# builtin opt  gdk_dbname = demo
+# builtin opt  gdk_dbfarm = 
/ufs/fabian/scratch/ssd/monetdb/jacqueline/program-x86_64/var/lib/monetdb5/dbfarm
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_alloc_map = no
+# builtin opt  gdk_vmtrim = yes
+# builtin opt  monet_prompt = >
+# builtin opt  monet_daemon = no
+# builtin opt  mapi_port = 50000
+# builtin opt  mapi_open = false
+# builtin opt  mapi_autosense = false
+# builtin opt  sql_optimizer = default_pipe
+# builtin opt  sql_debug = 0
+# cmdline opt  gdk_nr_threads = 0
+# cmdline opt  gdk_dbfarm = 
/net/sofia.ins.cwi.nl/export/scratch1/fabian/tmp/mtest-jacqueline-sofia.ins.cwi.nl/five/dbfarm
+# cmdline opt  mapi_open = true
+# cmdline opt  mapi_port = 33964
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbname = mTests_extras_jaql
+
+# 11:30:33 >  
+# 11:30:33 >  "Done."
+# 11:30:33 >  
+
diff --git a/monetdb5/extras/jaql/Tests/json01.stable.out 
b/monetdb5/extras/jaql/Tests/json01.stable.out
new file mode 100644
--- /dev/null
+++ b/monetdb5/extras/jaql/Tests/json01.stable.out
@@ -0,0 +1,50 @@
+stdout of test 'json01` in directory 'extras/jaql` itself:
+
+
+# 11:30:33 >  
+# 11:30:33 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"gdk_dbfarm=/net/sofia.ins.cwi.nl/export/scratch1/fabian/tmp/mtest-jacqueline-sofia.ins.cwi.nl/five/dbfarm"
 "--set" "mapi_open=true" "--set" "mapi_port=33964" "--set" "monet_prompt=" 
"--trace" "--forcemito" "--set" "mal_listing=2" "--dbname=mTests_extras_jaql" 
"json01.mal"
+# 11:30:33 >  
+
+# MonetDB 5 server v11.8.0 "jacqueline-497cf791babb+"
+# Serving database 'mTests_extras_jaql', using 8 threads
+# Compiled for x86_64-pc-linux-gnu/64bit with 64bit OIDs dynamically linked
+# Found 15.662 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2012 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://sofia.ins.cwi.nl:33964/
+# MonetDB/GIS module loaded
+# MonetDB/SQL module loaded
+# MonetDB/DataCell module not loaded: MALException:jaql.context:JAQL 
environment not found
+function user.main():void;
+    s := io.stdout();
+    (j1,j2,j3,j4,j5,j6,j7) := json.shred("1");
+    io.print(j1);
+    json.print(s,j1,j2,j3,j4,j5,j6,j7);
+    (j1,j2,j3,j4,j5,j6,j7) := json.shred("null");
+    io.print(j1);
+    json.print(s,j1,j2,j3,j4,j5,j6,j7);
+# this should be rejected 
+    (j1,j2,j3,j4,j5,j6,j7) := json.shred("1, null");
+catch MALException:str ;
+    io.printf("!%s\n",MALException);
+exit MALException:str ;
+end main;
+#-----------------#
+# h    t         # name
+# void chr       # type
+#-----------------#
+[ 0@0,   'i'     ]
+1
+#-----------------#
+# h    t         # name
+# void chr       # type
+#-----------------#
+[ 0@0,   'n'     ]
+null
+!MALException:json.shred:invalid JSON data, trailing characters: , null
+
+# 11:30:33 >  
+# 11:30:33 >  "Done."
+# 11:30:33 >  
+
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to