[agent/codex:gpt-5.4-mini] Read ~/spec/code/core/go/i18n/RFC.md fully. Find ONE feature... #82

Merged
Virgil merged 1 commit from agent/read---spec-code-core-go-i18n-rfc-md-ful into dev 2026-04-02 02:14:40 +00:00
2 changed files with 21 additions and 2 deletions

View file

@ -163,6 +163,16 @@ func IrregularNouns() map[string]string {
return result
}
// Lower returns the lowercase form of s.
func Lower(s string) string {
return core.Lower(s)
}
// Upper returns the uppercase form of s.
func Upper(s string) string {
return core.Upper(s)
}
func getVerbForm(lang, verb, form string) string {
data := GetGrammarData(lang)
if data == nil || data.Verbs == nil {
@ -782,8 +792,8 @@ func definiteArticleFromGrammarForms(data *GrammarData, lowerWord, originalWord,
func TemplateFuncs() template.FuncMap {
return template.FuncMap{
"title": Title,
"lower": core.Lower,
"upper": core.Upper,
"lower": Lower,
"upper": Upper,
"past": PastTense,
"gerund": Gerund,
"plural": Pluralize,

View file

@ -474,6 +474,15 @@ func TestQuote(t *testing.T) {
}
}
func TestCaseHelpers(t *testing.T) {
if got := Lower("HELLO"); got != "hello" {
t.Fatalf("Lower(%q) = %q, want %q", "HELLO", got, "hello")
}
if got := Upper("hello"); got != "HELLO" {
t.Fatalf("Upper(%q) = %q, want %q", "hello", got, "HELLO")
}
}
func TestArticlePhrase(t *testing.T) {
tests := []struct {
word string