Adding Korean language tests Addresses #6393

pull/7604/head
Jellifi007 3 years ago
parent 56573f14b0
commit 727402f7f7

@ -36,7 +36,8 @@ namespace Jellyfin.Extensions
}
}
return withoutDiactritics.ToString().Normalize(NormalizationForm.FormC);
string normalizedText = withoutDiactritics.ToString().Normalize(NormalizationForm.FormC);
return normalizedText;
}
/// <summary>

@ -13,6 +13,8 @@ namespace Jellyfin.Extensions.Tests
[InlineData("Jönssonligan", "Jonssonligan")] // Issue #7484
[InlineData("Kieślowski", "Kieslowski")] // Issue #7450
[InlineData("Cidadão Kane", "Cidadao Kane")] // Issue #7560
[InlineData("운명처럼 널 사랑해", "운명처럼 널 사랑해")] // Issue #6393 (Korean language support)
[InlineData("애타는 로맨스", "애타는 로맨스")] // Issue #6393
public void RemoveDiacritics_ValidInput_Corrects(string input, string expectedResult)
{
string result = input.RemoveDiacritics();
@ -27,6 +29,8 @@ namespace Jellyfin.Extensions.Tests
[InlineData("Jönssonligan", true)] // Issue #7484
[InlineData("Kieślowski", true)] // Issue #7450
[InlineData("Cidadão Kane", true)] // Issue #7560
[InlineData("운명처럼 널 사랑해", false)] // Issue #6393 (Korean language support)
[InlineData("애타는 로맨스", false)] // Issue #6393
public void HasDiacritics_ValidInput_Corrects(string input, bool expectedResult)
{
bool result = input.HasDiacritics();

Loading…
Cancel
Save