Skip to content

Commit

Permalink
issue-135 fixed oblivion search index sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
gennadyterekhov committed Jun 11, 2024
1 parent 90a98ef commit f1f13e9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/layers/data/storage/l10n/oblivion.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class OblivionL10nData {
},
"Fortify Magicka": {
/*"de": "",*/
"ru": " Повышение магии", /*"fr": "", "es": "", "it": "", "pl": "", "jp": "", "zh": ""*/
"ru": "Повышение магии", /*"fr": "", "es": "", "it": "", "pl": "", "jp": "", "zh": ""*/
},
"Fortify Personality": {
/*"de": "",*/
Expand Down
2 changes: 1 addition & 1 deletion lib/layers/data/storage/l10n/search_indices.dart
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class SearchLocalizedNameIndex {
"Повышение здоровья": "Fortify Health",
"Повышение интеллекта": "Fortify Intelligence",
"Повышение удачи": "Fortify Luck",
" Повышение магии": "Fortify Magicka",
"Повышение магии": "Fortify Magicka",
"Повышение обаяния": "Fortify Personality",
"Повышение скорости": "Fortify Speed",
"Повышение силы": "Fortify Strength",
Expand Down
7 changes: 7 additions & 0 deletions test/layers/data/resource/effect_resource_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ void main() {
List<Effect> effects = EffectResource(gameName: Constant.gameNameOblivion).searchEffectsByName("восс", "ru");
expect(effects.length, 11);
});

test("oblivion Повышение магии is not sorted uppermost", () {
List<Effect> effects = EffectResource(gameName: Constant.gameNameOblivion).searchEffectsByName("", "ru");
expect(effects.length, 68);
expect(effects[0].name, "Silence");
expect(effects[1].name, "Water Breathing");
});
});
}

Expand Down

0 comments on commit f1f13e9

Please sign in to comment.