5 func TestPercent(t *testing.T) {
15 expected: "%\u00a023",
20 expected: "%\u00a023,45",
25 expected: "%\u00a01.023,45",
30 expected: "%\u00a0-1.023,45",
36 for _, tt := range tests {
37 s := string(trans.FmtPercent(tt.num, tt.v))
39 t.Errorf("Expected '%s' Got '%s'", tt.expected, s)