package testesex4;

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

import org.junit.jupiter.api.Test;

import arranjo.ArrayIndexList;
import metodo_ex4b.B04;

class Ex_04_b {
	Object o;
	ArrayIndexList<Integer> arranjo = new ArrayIndexList<Integer>();

	@Test
	void invertearranjoPilhaLSE() {
		// Cria e preenche arranjo
		for (int i = 0; i < 4; i++) {
			arranjo.add(i, i + 1);
		}
		// Usa invertearranjo para inverter e realiza teste
		assertEquals("(4, 3, 2, 1)", B04.invertearranjo(arranjo).toString());
	}

}

{'avg_line_length': 22.2, 'max_line_length': 72, 'alphanum_fraction': 0.6810810810810811, 'licenses': ['MIT'], 'repository_name': 'impacta-cca/AC2-IMPACTA-ED', 'path': 'AC-02/ex_04/testesex4/Ex_04_b.java', 'size': 555, 'lang': 'Java'}