mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-30 20:07:08 -03:00
Add test for empty file content
This commit is contained in:
@ -23,6 +23,11 @@ public class EnryTest {
|
|||||||
assertEquals("Python", Enry.getLanguage("foo.py", null));
|
assertEquals("Python", Enry.getLanguage("foo.py", null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void getLanguageWithEmptyContent() {
|
||||||
|
assertEquals("Go", Enry.getLanguage("baz.go", "".getBytes()));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void getLanguageWithNullFilename() {
|
public void getLanguageWithNullFilename() {
|
||||||
byte[] content = "#!/usr/bin/env python".getBytes();
|
byte[] content = "#!/usr/bin/env python".getBytes();
|
||||||
|
Reference in New Issue
Block a user