mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
test: add new corner cases for linguist v7.23
test plan - go test -run '^Test_EnryOnLinguistCorpus$' github.com/go-enry/go-enry/v2
This commit is contained in:
@ -24,9 +24,15 @@ func Test_EnryOnLinguistCorpus(t *testing.T) {
|
||||
func (s *linguistCorpusSuite) TestLinguistSamples() {
|
||||
const filenamesDir = "filenames"
|
||||
var cornerCases = map[string]bool{
|
||||
"drop_stuff.sql": true, // https://github.com/src-d/enry/issues/194
|
||||
"textobj-rubyblock.vba": true, // Because of unsupported negative lookahead RE syntax (https://github.com/github/linguist/blob/8083cb5a89cee2d99f5a988f165994d0243f0d1e/lib/linguist/heuristics.yml#L521)
|
||||
"drop_stuff.sql": false, // not the case in v7.23, https://github.com/src-d/enry/issues/194
|
||||
"textobj-rubyblock.vba": true, // unsupported negative lookahead RE syntax (https://github.com/github/linguist/blob/8083cb5a89cee2d99f5a988f165994d0243f0d1e/lib/linguist/heuristics.yml#L521)
|
||||
// .es and .ice fail heuristics parsing, but do not fail any tests
|
||||
// 'Adblock Filter List' hack https://github.com/github/linguist/blob/bf853f1c663903e3ee35935189760191f1c45e1c/lib/linguist/heuristics.yml#L680-L702
|
||||
"Imperial Units Remover.txt": true,
|
||||
"abp-filters-anti-cv.txt": true,
|
||||
"anti-facebook.txt": true,
|
||||
"fake-news.txt": true,
|
||||
"test_rules.txt": true,
|
||||
}
|
||||
|
||||
var total, failed, ok, other int
|
||||
|
Reference in New Issue
Block a user