mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-12 04:09:48 +00:00
add a test for getLanguageByFilename
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
This commit is contained in:
@ -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" +
|
||||||
|
Reference in New Issue
Block a user