mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-05-23 08:30:07 -03:00
add a test for getLanguageByFilename
Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
This commit is contained in:
parent
574cae8a84
commit
5bde175c91
@ -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…
x
Reference in New Issue
Block a user