From 183754e869be3cf13f7370c2f1a3b9eaf97e3256 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 17 Mar 2024 18:23:12 +0100 Subject: [PATCH] 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. --- spelling_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spelling_test.go b/spelling_test.go index e42b3ce..edc518d 100644 --- a/spelling_test.go +++ b/spelling_test.go @@ -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{"รค"},