diff trafficintelligence/tests/utils.txt @ 1034:4069d8545922

updated mostCommong function
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 20 Jun 2018 12:04:22 -0400
parents aafbc0bab925
children 77fbd0e2ba7d
line wrap: on
line diff
--- a/trafficintelligence/tests/utils.txt	Wed Jun 20 00:07:03 2018 -0400
+++ b/trafficintelligence/tests/utils.txt	Wed Jun 20 12:04:22 2018 -0400
@@ -55,8 +55,8 @@
 'b'
 >>> mostCommon(list(range(10))+[1])
 1
->>> mostCommon([list(range(2)), list(range(4)), list(range(2))])
-[0, 1]
+>>> mostCommon([(1,2), (2,3), (1,2)])
+(1, 2)
 
 >>> res = sortByLength([list(range(3)), list(range(4)), list(range(1))])
 >>> [len(r) for r in res]