Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-135 fixed oblivion search index sorting #141

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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