mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Tests for .sql heuristic rules
This commit is contained in:
@@ -189,6 +189,16 @@ class TestHeuristcs < Minitest::Test
|
|||||||
})
|
})
|
||||||
end
|
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"]
|
# Candidate languages = ["Perl", "Perl6"]
|
||||||
def test_t_perl_by_heuristics
|
def test_t_perl_by_heuristics
|
||||||
assert_heuristics({
|
assert_heuristics({
|
||||||
|
|||||||
Reference in New Issue
Block a user