Implement HTML writer (#33)
Badges / coveralls (push) Successful in 1m1s

Reviewed-on: #33
Co-authored-by: Natercio Moniz <[email protected]>
This commit was merged in pull request #33.
This commit is contained in:
natercio authored and Natercio Moniz committed 2026-10-05 16:25:21 +01:00
1 parent 6c989c338c
commit 47f38fce2b
20 files changed
+782 -315

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
package writing_test
import (
"testing"
"github.com/nmoniz/any2anexoj/internal/writing"
)
func TestNewLocalizer(t *testing.T) {
tests := []struct {
name string
lang string
}{
{"english", "en"},
{"portuguese", "pt"},
{"english with region", "en-US"},
{"portuguese with region", "pt-BR"},
{"unknown language falls back to default", "!!"},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
_, err := writing.NewLocalizer(tt.lang)
if err != nil {
t.Fatalf("want success call but failed: %v", err)
}
})
}
}