From 5bde175c917d7a6e7f74d62edd10ad6c3eee2e01 Mon Sep 17 00:00:00 2001 From: Miguel Molina Date: Fri, 11 Aug 2017 12:27:51 +0200 Subject: [PATCH] add a test for getLanguageByFilename Signed-off-by: Miguel Molina --- java/src/test/java/tech/sourced/enry/EnryTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/java/src/test/java/tech/sourced/enry/EnryTest.java b/java/src/test/java/tech/sourced/enry/EnryTest.java index 9eac865..69f142e 100644 --- a/java/src/test/java/tech/sourced/enry/EnryTest.java +++ b/java/src/test/java/tech/sourced/enry/EnryTest.java @@ -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" +