mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-12 22:42:23 +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
|
@Test
|
||||||
public void getLanguageByEmacsModeline() {
|
public void getLanguageByEmacsModeline() {
|
||||||
String code = "// -*- font:bar;mode:c++ -*-\n" +
|
String code = "// -*- font:bar;mode:c++ -*-\n" +
|
||||||
|
Loading…
Reference in New Issue
Block a user