File: i18n_init_test.go

package info (click to toggle)
golang-gopkg-alecthomas-kingpin.v3 3.0~git20180227.b8d601d-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 420 kB
  • sloc: makefile: 6
file content (17 lines) | stat: -rw-r--r-- 299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package kingpin

import (
	"github.com/nicksnyder/go-i18n/i18n"
	"github.com/stretchr/testify/require"

	"testing"
)

func TestI18N_fr(t *testing.T) {
	f, err := i18n.Tfunc("fr")
	require.NoError(t, err)
	require.Equal(t,
		"Afficher l'aide contextuelle.",
		f("Show context-sensitive help."),
	)
}