Files

22 lines
525 B
Go

// Copyright (c) 2026 Storm Dragon
// SPDX-License-Identifier: GPL-3.0-or-later
package presentation
import "testing"
func TestPythonPhoneticNamesAndUnicodeFallback(t *testing.T) {
for _, trial := range []struct {
char rune
want string
}{
{'a', "alpha"}, {'A', "Alpha"}, {'j', "juliet"},
{'w', "whisky"}, {'W', "Whisky"}, {'x', "x ray"}, {'X', "X ray"},
{'É', ""}, {'界', ""}, {'1', ""}, {'?', ""}, {' ', ""},
} {
if got := Phonetic_letter(trial.char); got != trial.want {
t.Fatal(trial, got)
}
}
}