mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
Tests for .sql heuristic rules
This commit is contained in:
@@ -189,6 +189,16 @@ class TestHeuristcs < Minitest::Test
|
||||
})
|
||||
end
|
||||
|
||||
# Candidate languages = ["SQL", "PLpgSQL", "SQLPL", "PLSQL"]
|
||||
def test_sql_by_heuristics
|
||||
assert_heuristics({
|
||||
"SQL" => ["SQL/create_stuff.sql", "SQL/db.sql", "SQL/dual.sql"],
|
||||
"PLpgSQL" => all_fixtures("PLpgSQL", "*.sql"),
|
||||
"SQLPL" => ["SQLPL/trigger.sql"],
|
||||
"PLSQL" => all_fixtures("PLSQL", "*.sql")
|
||||
})
|
||||
end
|
||||
|
||||
# Candidate languages = ["Perl", "Perl6"]
|
||||
def test_t_perl_by_heuristics
|
||||
assert_heuristics({
|
||||
|
||||
Reference in New Issue
Block a user