mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
renamed Qt translation ts file to have XML ext and updated test_heuristics.rb
This commit is contained in:
@@ -53,13 +53,13 @@ class TestHeuristcs < Test::Unit::TestCase
|
||||
|
||||
def test_ts_typescript_by_heuristics
|
||||
languages = ["TypeScript", "XML"]
|
||||
results = Heuristics.disambiguate_pl(fixture("TypeScript/class.ts"), languages)
|
||||
results = Heuristics.disambiguate_ts(fixture("TypeScript/classes.ts"), languages)
|
||||
assert_equal Language["TypeScript"], results.first
|
||||
end
|
||||
|
||||
def test_ts_xml_by_heuristics
|
||||
languages = ["TypeScript", "XML"]
|
||||
results = Heuristics.disambiguate_pl(fixture("XML/pt_BR.ts"), languages)
|
||||
results = Heuristics.disambiguate_ts(fixture("XML/pt_BR.xml"), languages)
|
||||
assert_equal Language["XML"], results.first
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user