-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
golang.org/x/text@v0.3.3 golang.org/x/tools@v0.0.0-20180917221912-90fa682c2a6e
The following test failes with got art-x-klingon; want art-x-elvish.
func TestMatchArtificialLanguages(t *testing.T) {
// See https://en.wikipedia.org/wiki/Codes_for_constructed_languages
klingon, err := language.Parse("art-x-klingon")
if err != nil {
t.Fatal(err)
}
elvish, err := language.Parse("art-x-elvish")
if err != nil {
t.Fatal(err)
}
matcher := language.NewMatcher([]language.Tag{klingon, elvish})
m, _, _ := matcher.Match(elvish)
if m.String() != "art-x-elvish" {
t.Errorf("got %s; want art-x-elvish", m.String())
}
}Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.