Add new test case to spelling_test.go

A new test case named "Pronounce_Mixed" has been added to the file spelling_test.go. This new case helps validate the behavior of the function when dealing with mixed syllables. More specifically, it deals with a situation where a number and a pronounceable syllable are combined, enhancing the overall robustness of the spelling tests.
This commit is contained in:
Winni Neessen 2024-03-17 18:23:12 +01:00
parent c697a8ef8e
commit 183754e869
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D

View file

@ -140,6 +140,12 @@ func TestPronounce(t *testing.T) {
want: "mu-sa",
wantErr: false,
},
{
name: "Pronounce_Mixed",
syllables: []string{"mu", "1"},
want: "mu-ONE",
wantErr: false,
},
{
name: "Pronounce_NonKoremutakeSyllable",
syllables: []string{"ä"},