Skip to content

Commit

Permalink
Merge pull request #5 from p6laris/dev
Browse files Browse the repository at this point in the history
Testing the Kurdish Latin TextToMorse.
  • Loading branch information
p6laris authored Sep 24, 2023
2 parents 7d911c0 + d6f06d5 commit 23f4f9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions MorseSharp/MorseCharacters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public static class MorseCharacters
{
Language.English => GetMorseCharactersEnglish(),
Language.Kurdish => GetMorseCharactersKurdish(),
Language.KurdishLatin => GetMorseCharactersKurdishLatin(),
Language.Arabic => GetMorseCharactersArabic(),
Language.Deutsch => GetMorseCharactersDeutsch(),
Language.Espanol => GetMorseCharactersEspanol(),
Expand Down
9 changes: 9 additions & 0 deletions MorseTest/Languages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ public async void KurdishToMorse()
Assert.Equal("... ..._ ._ .__ ", morse);
}
[Fact]
public async void KurdishLatinToMorse()
{
TextMorseConverter Converter = new TextMorseConverter(Language.KurdishLatin);

var morse = await Converter.ConvertTextToMorse("slav");

Assert.Equal("... ._.. ._ .._.. ", morse);
}
[Fact]
public async void ArabicToMorse()
{
TextMorseConverter Converter = new TextMorseConverter(Language.Arabic);
Expand Down

0 comments on commit 23f4f9e

Please sign in to comment.