@@ -65,7 +65,7 @@ def test_scan_each_enumerator
65
65
keys_from_scan = scan_enumerator . to_a . uniq
66
66
all_keys = r . keys "*"
67
67
68
- assert_equal all_keys . sort , keys_from_scan . sort
68
+ assert all_keys . sort == keys_from_scan . sort
69
69
end
70
70
end
71
71
@@ -77,7 +77,7 @@ def test_scan_each_enumerator_match
77
77
keys_from_scan = r . scan_each ( :match => "key:1??" ) . to_a . uniq
78
78
all_keys = r . keys "key:1??"
79
79
80
- assert_equal all_keys . sort , keys_from_scan . sort
80
+ assert all_keys . sort == keys_from_scan . sort
81
81
end
82
82
end
83
83
@@ -93,7 +93,7 @@ def test_scan_each_block
93
93
94
94
all_keys = r . keys "*"
95
95
96
- assert_equal all_keys . sort , keys_from_scan . uniq . sort
96
+ assert all_keys . sort == keys_from_scan . uniq . sort
97
97
end
98
98
end
99
99
@@ -109,7 +109,7 @@ def test_scan_each_block_match
109
109
110
110
all_keys = r . keys "key:1?"
111
111
112
- assert_equal all_keys . sort , keys_from_scan . uniq . sort
112
+ assert all_keys . sort == keys_from_scan . uniq . sort
113
113
end
114
114
end
115
115
@@ -153,7 +153,7 @@ def test_sscan_each_enumerator
153
153
keys_from_scan = scan_enumerator . to_a . uniq
154
154
all_keys = r . smembers ( "set" )
155
155
156
- assert_equal all_keys . sort , keys_from_scan . sort
156
+ assert all_keys . sort == keys_from_scan . sort
157
157
end
158
158
end
159
159
@@ -167,7 +167,7 @@ def test_sscan_each_enumerator_match
167
167
168
168
all_keys = r . smembers ( "set" ) . grep ( /^ele:1.$/ )
169
169
170
- assert_equal all_keys . sort , keys_from_scan . sort
170
+ assert all_keys . sort == keys_from_scan . sort
171
171
end
172
172
end
173
173
@@ -184,7 +184,7 @@ def test_sscan_each_enumerator_block
184
184
185
185
all_keys = r . smembers ( "set" )
186
186
187
- assert_equal all_keys . sort , keys_from_scan . uniq . sort
187
+ assert all_keys . sort == keys_from_scan . uniq . sort
188
188
end
189
189
end
190
190
@@ -201,7 +201,7 @@ def test_sscan_each_enumerator_block_match
201
201
202
202
all_keys = r . smembers ( "set" ) . grep ( /^ele:1.$/ )
203
203
204
- assert_equal all_keys . sort , keys_from_scan . uniq . sort
204
+ assert all_keys . sort == keys_from_scan . uniq . sort
205
205
end
206
206
end
207
207
@@ -252,7 +252,7 @@ def test_hscan_each_enumerator
252
252
keys_from_scan = scan_enumerator . to_a . uniq
253
253
all_keys = r . hgetall ( "hash" ) . to_a
254
254
255
- assert_equal all_keys . sort , keys_from_scan . sort
255
+ assert all_keys . sort == keys_from_scan . sort
256
256
end
257
257
end
258
258
@@ -269,7 +269,7 @@ def test_hscan_each_enumerator_match
269
269
keys_from_scan = r . hscan_each ( "hash" , :match => "key:1?" ) . to_a . uniq
270
270
all_keys = r . hgetall ( "hash" ) . to_a . select { |k , v | k =~ /^key:1.$/ }
271
271
272
- assert_equal all_keys . sort , keys_from_scan . sort
272
+ assert all_keys . sort == keys_from_scan . sort
273
273
end
274
274
end
275
275
@@ -286,7 +286,7 @@ def test_hscan_each_block
286
286
end
287
287
all_keys = r . hgetall ( "hash" ) . to_a
288
288
289
- assert_equal all_keys . sort , keys_from_scan . uniq . sort
289
+ assert all_keys . sort == keys_from_scan . uniq . sort
290
290
end
291
291
end
292
292
@@ -306,7 +306,7 @@ def test_hscan_each_block_match
306
306
end
307
307
all_keys = r . hgetall ( "hash" ) . to_a . select { |k , v | k =~ /^key:1.$/ }
308
308
309
- assert_equal all_keys . sort , keys_from_scan . uniq . sort
309
+ assert all_keys . sort == keys_from_scan . uniq . sort
310
310
end
311
311
end
312
312
@@ -358,7 +358,7 @@ def test_zscan_each_enumerator
358
358
scores_from_scan = scan_enumerator . to_a . uniq
359
359
member_scores = r . zrange ( "zset" , 0 , -1 , :with_scores => true )
360
360
361
- assert_equal member_scores . sort , scores_from_scan . sort
361
+ assert member_scores . sort == scores_from_scan . sort
362
362
end
363
363
end
364
364
@@ -376,7 +376,7 @@ def test_zscan_each_enumerator_match
376
376
member_scores = r . zrange ( "zset" , 0 , -1 , :with_scores => true )
377
377
filtered_members = member_scores . select { |k , s | k =~ /^key:1..$/ }
378
378
379
- assert_equal filtered_members . sort , scores_from_scan . sort
379
+ assert filtered_members . sort == scores_from_scan . sort
380
380
end
381
381
end
382
382
@@ -393,7 +393,7 @@ def test_zscan_each_block
393
393
end
394
394
member_scores = r . zrange ( "zset" , 0 , -1 , :with_scores => true )
395
395
396
- assert_equal member_scores . sort , scores_from_scan . sort
396
+ assert member_scores . sort == scores_from_scan . sort
397
397
end
398
398
end
399
399
@@ -414,7 +414,7 @@ def test_zscan_each_block_match
414
414
member_scores = r . zrange ( "zset" , 0 , -1 , :with_scores => true )
415
415
filtered_members = member_scores . select { |k , s | k =~ /^key:1..$/ }
416
416
417
- assert_equal filtered_members . sort , scores_from_scan . sort
417
+ assert filtered_members . sort == scores_from_scan . sort
418
418
end
419
419
end
420
420
0 commit comments