<commit_before>package com.almasb.fxgl.core.collection;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

class ArrayTest
{
    @Test
    public void constructor_should_instantiate()
    {
        Array<Integer> array = new Array();
        array = new Array(Integer.class);
    }

    @Test
    public void array_has_correctEmptyStatus()
    {
        Array<Integer> array = new Array();
        assertAll(
                () -> assertTrue(array.isEmpty()),
                () -> assertFalse(array.isNotEmpty())
        );

        array.add(1);
        assertAll(
                () -> assertFalse(array.isEmpty()),
                () -> assertTrue(array.isNotEmpty())
        );
    }

    @Test
    public void array_has_correctSize()
    {
        Array<Integer> array = new Array<>();
<commit_msg>Added public modifier to Array Test class.<commit_after>package com.almasb.fxgl.core.collection;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;

public class ArrayTest
{
    @Test
    public void constructor_should_instantiate()
    {
        Array<Integer> array = new Array();
        array = new Array(Integer.class);
    }

    @Test
    public void array_has_correctEmptyStatus()
    {
        Array<Integer> array = new Array();
        assertAll(
                () -> assertTrue(array.isEmpty()),
                () -> assertFalse(array.isNotEmpty())
        );

        array.add(1);
        assertAll(
                () -> assertFalse(array.isEmpty()),
                () -> assertTrue(array.isNotEmpty())
        );
    }

    @Test
    public void array_has_correctSize()
    {
        Array<Integer> array = new Array<>();

{'fraction_non_alphanumeric': 0.12460063897763578, 'fraction_numerical': 0.0010649627263045794, 'mean_word_length': 2.267826086956522, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '6962114', 'n_tokens_mistral': 544, 'n_tokens_neox': 531, 'n_words': 101}