mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
Merge pull request #95 from erizocosmico/test/get-language-by-filename
add a test for getLanguageByFilename
This commit is contained in:
commit
9b33af75ed
@ -28,6 +28,15 @@ public class EnryTest {
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getLanguageByFilename() {
|
||||
assertGuess(
|
||||
"Maven POM",
|
||||
true,
|
||||
Enry.getLanguageByFilename("pom.xml")
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getLanguageByEmacsModeline() {
|
||||
String code = "// -*- font:bar;mode:c++ -*-\n" +
|
||||
|
Loading…
Reference in New Issue
Block a user