get jnaerator from a jitpack jar

Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
This commit is contained in:
Miguel Molina
2017-08-08 17:36:52 +02:00
parent f53abe6bc2
commit 2825eb22e6
3 changed files with 12 additions and 12 deletions

View File

@@ -18,14 +18,13 @@ public class EnryTest {
assertEquals("PHP", Enry.getLanguage("foobar.php", code.getBytes()));
}
// TODO: this is a bug in enry, fix when it's fixed there
@Test(expected = AssertionError.class)
@Test
public void getLanguageByContent() {
String code = "<?php $foo = bar();";
assertGuess(
"PHP",
true,
Enry.getLanguageByContent(code.getBytes())
Enry.getLanguageByContent("foo.php", code.getBytes())
);
}