[Checkins] SVN: Sandbox/adamg/ocql/trunk/src/ocql/tests/functions.txt result order fixed
Adam Groszer
agroszer at gmail.com
Thu Aug 21 11:07:20 EDT 2008
Log message for revision 90076:
result order fixed
Changed:
U Sandbox/adamg/ocql/trunk/src/ocql/tests/functions.txt
-=-
Modified: Sandbox/adamg/ocql/trunk/src/ocql/tests/functions.txt
===================================================================
--- Sandbox/adamg/ocql/trunk/src/ocql/tests/functions.txt 2008-08-21 15:04:16 UTC (rev 90075)
+++ Sandbox/adamg/ocql/trunk/src/ocql/tests/functions.txt 2008-08-21 15:07:20 UTC (rev 90076)
@@ -3,7 +3,7 @@
>>> provideAdapter(TestMetadata)
>>> from ocql.engine import OCQLEngine
>>> engine = OCQLEngine()
-
+
Number constant -- set:
>>> engine.compile("set [ | 1 ]").execute()
set([1])
@@ -107,8 +107,8 @@
# set([set([Department <Computing Science>, Department <Other department>]), set([]), set([Department <Computing Science>])])
Expression in the result:
- >>> sorted(engine.compile("list [ i in ICourse | i.runBy ]").execute())
- [set([]), set([Department <Computing Science>]), set([Department <Other department>, Department <Computing Science>])]
+ >>> sorted(engine.compile("list [ i in ICourse | i.runBy ]").execute(), key=lambda x:sorted(x, key=lambda y:y.name))
+ [set([]), set([Department <Computing Science>]), set([Department <Computing Science>, Department <Other department>])]
Size expression in the result:
>>> engine.compile("list [ c in ICourse ; len(c.runBy) == 1 | c ]").execute()
More information about the Checkins
mailing list