Expose GetLanguageType (#2)

This commit is contained in:
Utsav Chokshi
2022-03-02 10:32:57 +05:30
committed by GitHub
parent 821f01cdde
commit 4e3a49c565
3 changed files with 22 additions and 1 deletions

View File

@@ -177,6 +177,11 @@ public class EnryTest {
assertFalse(Enry.isTest("src/java/foo.java"));
}
@Test
public void getLanguageType() {
assertEquals("data", Enry.getLanguageType("CSV"));
}
void assertGuess(String language, boolean safe, Guess guess) {
assertEquals(language, guess.language);
assertEquals(safe, guess.safe);