enry-java: allow empty file contents

Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
This commit is contained in:
Miguel Molina
2017-09-22 17:50:04 +02:00
committed by Alexander
parent b020f78841
commit 9a36e8f398
2 changed files with 2 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ public class EnryTest {
@Test
public void getLanguageWithEmptyContent() {
assertEquals("Go", Enry.getLanguage("baz.go", "".getBytes()));
assertEquals("Go", Enry.getLanguage("baz.go", null));
}
@Test