@@ -124,7 +124,7 @@ public void MaterskaSkolaWithBelohrad_PrefersBelohradskaSkola_AllPermutations()
124124 }
125125
126126 int targetIndex = - 1 ;
127- int targetScore = - 1 ;
127+ float targetScore = - 1 ;
128128
129129 for ( int i = 0 ; i < records . Length ; i ++ )
130130 {
@@ -217,8 +217,8 @@ public void Sciozli_ZlinScoresHigherThanKolin()
217217 $ "First result should be ScioŠkola Zlín, but was: { firstDoc . IndexedText } ") ;
218218
219219 // Find scores for both schools
220- int zlinScore = - 1 ;
221- int kolinScore = - 1 ;
220+ float zlinScore = - 1 ;
221+ float kolinScore = - 1 ;
222222
223223 foreach ( var record in records )
224224 {
@@ -299,8 +299,8 @@ public void Sciozlinskaskola_ZlinRanksFirst()
299299 $ "First result should be ScioŠkola Zlín (query contains 'zlín'), but was: { firstDoc . IndexedText } ") ;
300300
301301 // Find scores for both schools
302- int zlinScore = - 1 ;
303- int kolinScore = - 1 ;
302+ float zlinScore = - 1 ;
303+ float kolinScore = - 1 ;
304304
305305 foreach ( var record in records )
306306 {
@@ -352,8 +352,8 @@ public void Sciozlin_Query_ReturnsSchool()
352352 $ "First result should be ScioŠkola Zlín for 'sciozlín', but was: { topDoc . IndexedText } ") ;
353353
354354 // If Kolín appears, it must have a lower score
355- int zlinScore = records [ 0 ] . Score ;
356- int kolinScore = - 1 ;
355+ float zlinScore = records [ 0 ] . Score ;
356+ float kolinScore = - 1 ;
357357
358358 foreach ( var record in records )
359359 {
@@ -402,7 +402,7 @@ public void ScioskolaCityAbbreviation_RanksCorrectCityFirst(string query, string
402402 $ "First result should contain '{ expectedSchoolSubstring } ', but was: { firstDoc . IndexedText } ") ;
403403
404404 // Requirement 2: The correct ScioŠkola must have a strictly higher score than others
405- int targetScore = records [ 0 ] . Score ;
405+ float targetScore = records [ 0 ] . Score ;
406406 for ( int i = 1 ; i < records . Length ; i ++ )
407407 {
408408 var doc = engine . GetDocument ( records [ i ] . DocumentId ) ;
@@ -471,7 +471,7 @@ public void TyrsovkaCeskaLipa_PrefersCeskaLipaSchool()
471471 const string targetName = "Základní škola Dr. Miroslava Tyrše, Česká Lípa, Mánesova 1526, příspěvková organizace" ;
472472
473473 int targetIndex = - 1 ;
474- int targetScore = - 1 ;
474+ float targetScore = - 1 ;
475475
476476 for ( int i = 0 ; i < records . Length ; i ++ )
477477 {
0 commit comments