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