Implement getting color code for languages

Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
This commit is contained in:
Lauris Bukšis-Haberkorns
2019-07-19 23:28:57 +03:00
parent 6ccf0b6bd1
commit 25b29ebdc4
12 changed files with 611 additions and 0 deletions

View File

@@ -161,6 +161,14 @@ public class EnryTest {
assertFalse(Enry.isImage("nope.go"));
}
@Test
public void getColor() {
assertEquals(
"#00ADD8",
Enry.getColor("Go")
);
}
void assertGuess(String language, boolean safe, Guess guess) {
assertEquals(language, guess.language);
assertEquals(safe, guess.safe);