You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is roughly how linguist does it. They put samples that should be matched by filename in samples/LANGUAGE/filenames/ (extension tests just go in samples/LANGUAGE/).
On a slightly related note, perhaps the "from string" method on Language should be replaced with reversing the name to the language for samples tests, with a pub(crate) method to reverse the variant name to the variant for .gitattributes 🤔
The text was updated successfully, but these errors were encountered:
This is roughly how linguist does it. They put samples that should be matched by filename in
samples/LANGUAGE/filenames/
(extension tests just go insamples/LANGUAGE/
).On a slightly related note, perhaps the "from string" method on
Language
should be replaced with reversing the name to the language for samples tests, with apub(crate)
method to reverse the variant name to the variant for.gitattributes
🤔The text was updated successfully, but these errors were encountered: