~zorba-coders/zorba/bug-1189862-queue

« back to all changes in this revision

Viewing changes to test/Queries/push-json1.xq

  • Committer: Zorba Jenkins
  • Author(s): chillery+launchpad at lambda, Luis Rodriguez Gonzalez
  • Date: 2013-07-17 06:19:53 UTC
  • mfrom: (12.1.9 queue)
  • Revision ID: jenkins@lambda.nu-20130717061953-m7by1fnizjjz8rpj
Update to 3.0 module guidelines; make JSON-ready.
Approved: Luis Rodriguez Gonzalez, Chris Hillery

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import module namespace queue = "http://zorba.io/modules/queue";
 
2
 
 
3
variable $name := fn:QName("", "queue1");
 
4
(
 
5
  queue:create($name),
 
6
  queue:push($name, { "a" : 1 }),
 
7
  queue:push($name, { "b" : fn:true() }),
 
8
  queue:pop($name),
 
9
  queue:push($name, { "c" : jn:null() }),
 
10
  queue:push($name, { "d" : 1.4142 }),
 
11
  queue:pop($name)
 
12
)