mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-13 23:12:24 +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