Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import static org.junit.Assert.*;
- import org.junit.Test;
- public class contarColumnasConCerosTest {
- @Test
- public void contarColumnasConCeros() {
- contarColumnasConCeros gonza = new contarColumnasConCeros();
- double matriz[][] = new double[6][6];
- matriz[0][0] = 1;
- matriz[0][1] = 1;
- matriz[0][2] = 1;
- matriz[0][3] = 1;
- matriz[0][4] = 1;
- matriz[0][5] = 1;
- matriz[2][0] = 1;
- matriz[2][1] = 1;
- matriz[2][2] = 1;
- matriz[2][3] = 1;
- matriz[2][4] = 1;
- matriz[2][5] = 1;
- assertEquals(4, gonza.contarColumnas(matriz));
- }
- @Test
- public void contarColumnasConCeros2() {
- contarColumnasConCeros gonza = new contarColumnasConCeros();
- double matriz[][] = new double[6][6];
- matriz[0][0] = 1;
- matriz[0][1] = 1;
- matriz[0][2] = 1;
- matriz[0][3] = 1;
- assertEquals(6, gonza.contarColumnas(matriz));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement