@@ -9,7 +9,7 @@ namespace NRedisStack.Tests.Search;
99public class HybridSearchUnitTests ( ITestOutputHelper log )
1010{
1111 private string Index { get ; } = "myindex" ;
12-
12+
1313 private ICollection < object > GetArgs ( HybridSearchQuery query )
1414 {
1515 Assert . Equal ( "FT.HYBRID" , query . Command ) ;
@@ -49,7 +49,7 @@ public void BasicSearch_WithNullScorer(bool withAlias) // test: no SCORER added
4949 object [ ] expected = [ Index , "SEARCH" , "foo" ] ;
5050 if ( withAlias )
5151 {
52- expected = [ ..expected , "YIELD_SCORE_AS" , "score_alias" ] ;
52+ expected = [ .. expected , "YIELD_SCORE_AS" , "score_alias" ] ;
5353 }
5454
5555 Assert . Equivalent ( expected , GetArgs ( query ) ) ;
@@ -69,7 +69,7 @@ public void BasicSearch_WithSimpleScorer(bool withAlias)
6969 object [ ] expected = [ Index , "SEARCH" , "foo" , "SCORER" , "TFIDF" ] ;
7070 if ( withAlias )
7171 {
72- expected = [ ..expected , "YIELD_SCORE_AS" , "score_alias" ] ;
72+ expected = [ .. expected , "YIELD_SCORE_AS" , "score_alias" ] ;
7373 }
7474
7575 Assert . Equivalent ( expected , GetArgs ( query ) ) ;
@@ -119,12 +119,12 @@ public void BasicVectorSearch()
119119 {
120120 HybridSearchQuery query = new ( ) ;
121121 query . VectorSearch ( "vfield" , Array . Empty < float > ( ) ) ;
122-
122+
123123 object [ ] expected = [ Index , "VSIM" , "vfield" , "" ] ;
124124 Assert . Equivalent ( expected , GetArgs ( query ) ) ;
125125 }
126126
127- private static readonly ReadOnlyMemory < float > SomeRandomDataHere = new float [ ] { 1 , 2 , 3 , 4 } ;
127+ private static readonly ReadOnlyMemory < float > SomeRandomDataHere = new float [ ] { 1 , 2 , 3 , 4 } ;
128128
129129 private const string SomeRandomBase64 = "AACAPwAAAEAAAEBAAACAQA==" ;
130130
@@ -156,12 +156,12 @@ public void BasicVectorSearch_WithKNN(bool withScoreAlias, bool withDistanceAlia
156156 [ Index , "VSIM" , "vField" , SomeRandomBase64 , "KNN" , withDistanceAlias ? 4 : 2 , "K" , 10 ] ;
157157 if ( withDistanceAlias )
158158 {
159- expected = [ ..expected , "YIELD_DISTANCE_AS" , "my_distance_alias" ] ;
159+ expected = [ .. expected , "YIELD_DISTANCE_AS" , "my_distance_alias" ] ;
160160 }
161161
162162 if ( withScoreAlias )
163163 {
164- expected = [ ..expected , "YIELD_SCORE_AS" , "my_score_alias" ] ;
164+ expected = [ .. expected , "YIELD_SCORE_AS" , "my_score_alias" ] ;
165165 }
166166
167167 Assert . Equivalent ( expected , GetArgs ( query ) ) ;
@@ -190,12 +190,12 @@ public void BasicVectorSearch_WithKNN_WithEF(bool withScoreAlias, bool withDista
190190 ] ;
191191 if ( withDistanceAlias )
192192 {
193- expected = [ ..expected , "YIELD_DISTANCE_AS" , "my_distance_alias" ] ;
193+ expected = [ .. expected , "YIELD_DISTANCE_AS" , "my_distance_alias" ] ;
194194 }
195195
196196 if ( withScoreAlias )
197197 {
198- expected = [ ..expected , "YIELD_SCORE_AS" , "my_score_alias" ] ;
198+ expected = [ .. expected , "YIELD_SCORE_AS" , "my_score_alias" ] ;
199199 }
200200
201201 Assert . Equivalent ( expected , GetArgs ( query ) ) ;
@@ -222,12 +222,12 @@ public void BasicVectorSearch_WithRange(bool withScoreAlias, bool withDistanceAl
222222 ] ;
223223 if ( withDistanceAlias )
224224 {
225- expected = [ ..expected , "YIELD_DISTANCE_AS" , "my_distance_alias" ] ;
225+ expected = [ .. expected , "YIELD_DISTANCE_AS" , "my_distance_alias" ] ;
226226 }
227227
228228 if ( withScoreAlias )
229229 {
230- expected = [ ..expected , "YIELD_SCORE_AS" , "my_score_alias" ] ;
230+ expected = [ .. expected , "YIELD_SCORE_AS" , "my_score_alias" ] ;
231231 }
232232
233233 Assert . Equivalent ( expected , GetArgs ( query ) ) ;
@@ -255,12 +255,12 @@ public void BasicVectorSearch_WithRange_WithEpsilon(bool withScoreAlias, bool wi
255255 ] ;
256256 if ( withDistanceAlias )
257257 {
258- expected = [ ..expected , "YIELD_DISTANCE_AS" , "my_distance_alias" ] ;
258+ expected = [ .. expected , "YIELD_DISTANCE_AS" , "my_distance_alias" ] ;
259259 }
260260
261261 if ( withScoreAlias )
262262 {
263- expected = [ ..expected , "YIELD_SCORE_AS" , "my_score_alias" ] ;
263+ expected = [ .. expected , "YIELD_SCORE_AS" , "my_score_alias" ] ;
264264 }
265265
266266 Assert . Equivalent ( expected , GetArgs ( query ) ) ;
@@ -320,12 +320,12 @@ public void Combine_NonDefaultRrf(int? window, double? constant)
320320 object [ ] expected = [ Index , "COMBINE" , "RRF" , ( window is not null ? 2 : 0 ) + ( constant is not null ? 2 : 0 ) ] ;
321321 if ( window is not null )
322322 {
323- expected = [ ..expected , "WINDOW" , window ] ;
323+ expected = [ .. expected , "WINDOW" , window ] ;
324324 }
325325
326326 if ( constant is not null )
327327 {
328- expected = [ ..expected , "CONSTANT" , constant ] ;
328+ expected = [ .. expected , "CONSTANT" , constant ] ;
329329 }
330330
331331 Assert . Equivalent ( expected , GetArgs ( query ) ) ;
0 commit comments