<commit_before>package com.valkryst.VTerminal.font;

import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;
import java.net.URISyntaxException;

public class FontTest {
    private final Font font;

    public FontTest() throws IOException, URISyntaxException {
        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++) {
            Assert.assertNotNull(font.getCharacterImage((char) i));
        }
    }

    @Test
    public void testGetWidth() {
        Assert.assertEquals(12, font.getWidth());
    }

    @Test
    public void testGetHeight() {
        Assert.assertEquals(24, font.getHeight());
    }<commit_msg>Adds tests for the isCharacterSupported function.<commit_after>package com.valkryst.VTerminal.font;

import org.junit.Assert;
import org.junit.Test;

import java.io.IOException;
import java.net.URISyntaxException;

public class FontTest {
    private final Font font;

    public FontTest() throws IOException, URISyntaxException {
        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 testIsCharacterSupported_withSupportedCharacter() {
        Assert.assertTrue(font.isCharacterSupported('?'));
    }

    @Test
    public void testIsCharacterSupported_withNonSupportedCharacter() {
        Assert.assertFalse(font.isCharacterSupported('\u1F5E'));
    }

    @Test
    public void testGetCharacterImage_withAllSymbolAlphabeticAndNumberAsciiCharacters() {
        for (byte i = 33 ; i < 127 ; i++) {
            Assert.assertNotNull(font.getCharacterImage((char) i));
        }
    }
{'fraction_non_alphanumeric': 0.10586250527203711, 'fraction_numerical': 0.015183466891606916, 'mean_word_length': 3.5267175572519083, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '926287', 'n_tokens_mistral': 779, 'n_tokens_neox': 733, 'n_words': 143}