@@ -84,7 +84,7 @@ def test_extract_first_key
84
84
[
85
85
{ command : %w[ SET foo 1 ] , want : 'foo' } ,
86
86
{ command : %w[ GET foo ] , want : 'foo' } ,
87
- { command : %w[ GET foo{bar}baz ] , want : 'bar' } ,
87
+ { command : %w[ GET foo{bar}baz ] , want : 'foo{ bar}baz ' } ,
88
88
{ command : %w[ MGET foo bar baz ] , want : 'foo' } ,
89
89
{ command : %w[ UNKNOWN foo bar ] , want : '' } ,
90
90
{ command : [ [ 'GET' ] , 'foo' ] , want : 'foo' } ,
@@ -190,28 +190,6 @@ def test_determine_optional_key_position
190
190
assert_equal ( c [ :want ] , got , msg )
191
191
end
192
192
end
193
-
194
- def test_extract_hash_tag
195
- cmd = ::RedisClient ::Cluster ::Command . load ( @raw_clients )
196
- [
197
- { key : 'foo' , want : '' } ,
198
- { key : 'foo{bar}baz' , want : 'bar' } ,
199
- { key : 'foo{bar}baz{qux}quuc' , want : 'bar' } ,
200
- { key : 'foo}bar{baz' , want : '' } ,
201
- { key : 'foo{bar' , want : '' } ,
202
- { key : 'foo}bar' , want : '' } ,
203
- { key : 'foo{}bar' , want : '' } ,
204
- { key : '{}foo' , want : '' } ,
205
- { key : 'foo{}' , want : '' } ,
206
- { key : '{}' , want : '' } ,
207
- { key : '' , want : '' } ,
208
- { key : nil , want : '' }
209
- ] . each_with_index do |c , idx |
210
- msg = "Case: #{ idx } "
211
- got = cmd . send ( :extract_hash_tag , c [ :key ] )
212
- assert_equal ( c [ :want ] , got , msg )
213
- end
214
- end
215
193
end
216
194
end
217
195
end
0 commit comments