[Checkins]
SVN: Sandbox/adamg/ocql/branches/optimize-with-index/src/ocql/tests/run.txt
fix set order in tests, better said sets have no order
Adam Groszer
agroszer at gmail.com
Wed Jul 16 12:38:15 EDT 2008
Log message for revision 88416:
fix set order in tests, better said sets have no order
Changed:
U Sandbox/adamg/ocql/branches/optimize-with-index/src/ocql/tests/run.txt
-=-
Modified: Sandbox/adamg/ocql/branches/optimize-with-index/src/ocql/tests/run.txt
===================================================================
--- Sandbox/adamg/ocql/branches/optimize-with-index/src/ocql/tests/run.txt 2008-07-16 16:20:42 UTC (rev 88415)
+++ Sandbox/adamg/ocql/branches/optimize-with-index/src/ocql/tests/run.txt 2008-07-16 16:38:14 UTC (rev 88416)
@@ -43,8 +43,8 @@
RunnableQuery: set.union(set([1]), set([2]))
>>> result = run.execute()
- >>> result
- set([1, 2])
+ >>> sorted(list(result))
+ [1, 2]
>>> type(result)
<type 'set'>
@@ -57,8 +57,8 @@
RunnableQuery: reduce(set.union, map(lambda i: set([i]), set(metadata.getAll("ICourse"))), set())
>>> result = run.execute()
- >>> result
- set([Course <C1>, Course <C2>, Course <C3>])
+ >>> sorted(list(result), key=lambda i: i.code)
+ [Course <C1>, Course <C2>, Course <C3>]
>>> type(result)
<type 'set'>
More information about the Checkins
mailing list