Skip to content

Commit 3462665

Browse files
author
Ariel Shtul
authored
TopK.list returns results by score (#35)
1 parent 13d75ed commit 3462665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def testTopK(self):
200200
self.assertTrue(rb.topkReserve('topklist', 3, 50, 3, 0.9))
201201
self.assertTrue(rb.topkAdd('topklist', 'A', 'B', 'C', 'D', 'E','A', 'A', 'B', 'C',
202202
'G', 'D', 'B', 'D', 'A', 'E', 'E'))
203-
self.assertEqual(['D', 'A', 'B'], rb.topkList('topklist'))
203+
self.assertEqual(['A', 'D', 'B'], rb.topkList('topklist'))
204204
info = rb.topkInfo('topklist')
205205
self.assertEqual(3, info.k)
206206
self.assertEqual(50, info.width)

0 commit comments

Comments
 (0)