Merge lp:~zorba-coders/zorba/deterministic-keys1g into lp:zorba

Proposed by Till Westmann
Status: Merged
Approved by: Chris Hillery
Approved revision: 11020
Merged at revision: 11021
Proposed branch: lp:~zorba-coders/zorba/deterministic-keys1g
Merge into: lp:zorba
Diff against target: 77 lines (+26/-24)
2 files modified
test/rbkt/ExpQueryResults/zorba/index/keys1g.xml.res (+20/-20)
test/rbkt/Queries/zorba/index/keys1g.xq (+6/-4)
To merge this branch: bzr merge lp:~zorba-coders/zorba/deterministic-keys1g
Reviewer Review Type Date Requested Status
Ghislain Fourny Approve
David Graf (community) Approve
Review via email: mp+122729@code.launchpad.net

Commit message

ensure deterministic test results for keys of index on unordered collection by sorting

Description of the change

ensure deterministic test results for keys of index on unordered collection by sorting

To post a comment you must log in.
Revision history for this message
David Graf (davidagraf) wrote :

Very good. I need to do the same for the paging tests :-(

review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T09-15-00.565Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1, Needs Fixing < 1, Pending < 1. Got: 1 Approve, 1 Pending.

Revision history for this message
Ghislain Fourny (gislenius) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T12-48-00.379Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T13-14-03.962Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T13-39-57.025Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T14-05-57.802Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T14-32-00.894Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T14-57-58.466Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T15-24-06.483Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T15-50-02.515Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T16-19-49.153Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job deterministic-keys1g-2012-09-05T16-46-59.97Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'test/rbkt/ExpQueryResults/zorba/index/keys1g.xml.res'
--- test/rbkt/ExpQueryResults/zorba/index/keys1g.xml.res 2012-07-13 21:13:30 +0000
+++ test/rbkt/ExpQueryResults/zorba/index/keys1g.xml.res 2012-09-04 17:54:21 +0000
@@ -1,32 +1,32 @@
1<keys>1<keys count="10">
2 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
3 <attribute type="xs:long" value="0"></attribute>
4 </key>
5 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
6 <attribute type="xs:long" value="2"></attribute>
7 </key>
8 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
9 <attribute type="xs:long" value="4"></attribute>
10 </key>
11 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
12 <attribute type="xs:long" value="6"></attribute>
13 </key>
14 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
15 <attribute type="xs:long" value="8"></attribute>
16 </key>
2 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">17 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
3 <attribute type="xs:string" value="2"></attribute>18 <attribute type="xs:string" value="2"></attribute>
4 </key>19 </key>
5 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">20 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
21 <attribute type="xs:string" value="4"></attribute>
22 </key>
23 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
6 <attribute type="xs:string" value="6"></attribute>24 <attribute type="xs:string" value="6"></attribute>
7 </key>25 </key>
8 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">26 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
9 <attribute type="xs:string" value="4"></attribute>27 <attribute type="xs:string" value="8"></attribute>
10 </key>28 </key>
11 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">29 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
12 <attribute type="xs:string" value="10"></attribute>30 <attribute type="xs:string" value="10"></attribute>
13 </key>31 </key>
14 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
15 <attribute type="xs:string" value="8"></attribute>
16 </key>
17 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
18 <attribute type="xs:long" value="0"></attribute>
19 </key>
20 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
21 <attribute type="xs:long" value="6"></attribute>
22 </key>
23 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
24 <attribute type="xs:long" value="2"></attribute>
25 </key>
26 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
27 <attribute type="xs:long" value="8"></attribute>
28 </key>
29 <key xmlns="http://www.zorba-xquery.com/modules/store/static/indexes/dml">
30 <attribute type="xs:long" value="4"></attribute>
31 </key>
32</keys>32</keys>
3333
=== modified file 'test/rbkt/Queries/zorba/index/keys1g.xq'
--- test/rbkt/Queries/zorba/index/keys1g.xq 2012-07-13 21:13:30 +0000
+++ test/rbkt/Queries/zorba/index/keys1g.xq 2012-09-04 17:54:21 +0000
@@ -17,10 +17,12 @@
17 <foo id="{$i - 1}" string="true"/>17 <foo id="{$i - 1}" string="true"/>
18 );18 );
1919
20let $keys := index_dml:keys(xs:QName("keys-lib:FooIdx-general"))20let $keys :=
21let $attr := $keys[1]/self::*:key/*:attribute/@*:value21 for $key in index_dml:keys(xs:QName("keys-lib:FooIdx-general"))
22 let $attr := $key/self::*:key/*:attribute
23 order by xs:string($attr/@*:type), xs:long($attr/@*:value)
24 return $key
22return25return
23 <keys>{26 <keys count="{ count($keys) }">{
24 $keys27 $keys
25 }</keys>28 }</keys>
26

Subscribers

People subscribed via source and target branches