Merge pull request #95 from erizocosmico/test/get-language-by-filename

add a test for getLanguageByFilename
This commit is contained in:
Alfredo Beaumont 2017-08-11 13:06:38 +02:00 committed by GitHub
commit 9b33af75ed

View File

@ -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" +