Adds constructor test.
@@ -13,6 +13,12 @@ public class FontTest {
font = FontLoader.loadFontFromJar("Fonts/DejaVu Sans Mono/20pt/bitmap.png", "Fonts/DejaVu Sans Mono/20pt/data.fnt", 1);
}
+ @Test
+ public void testConstructor_withZeroScale() throws IOException, URISyntaxException {
+ FontLoader.loadFontFromJar("Fonts/DejaVu Sans Mono/20pt/bitmap.png", "Fonts/DejaVu Sans Mono/20pt/data.fnt", 0);
+ Assert.assertTrue(true);
+ }
+
@Test
public void testGetCharacterImage_withAllSymbolAlphabeticAndNumberAsciiCharacters() {
for (byte i = 33 ; i < 127 ; i++) {
