[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:20:42 EDT 2008
Log message for revision 88415:
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:03:19 UTC (rev 88414)
+++ Sandbox/adamg/ocql/branches/optimize-with-index/src/ocql/tests/run.txt 2008-07-16 16:20:42 UTC (rev 88415)
@@ -71,12 +71,16 @@
RunnableQuery: reduce(set.union, map(lambda c: set([c.code]), set(metadata.getAll("ICourse"))), set())
>>> result = run.execute()
- >>> result
- set(['C3', 'C2', 'C1'])
+ >>> type(result)
+ <type 'set'>
+ >>> len(result)
+ 3
+ >>> sorted(list(result))
+ ['C1', 'C2', 'C3']
>>> type(result)
<type 'set'>
>>> run = run.reanalyze()
- >>> run.execute()
- set(['C3', 'C2', 'C1'])
\ No newline at end of file
+ >>> sorted(list(run.execute()))
+ ['C1', 'C2', 'C3']
\ No newline at end of file
More information about the Checkins
mailing list