/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.edu.amu.wmi.dino.ultrapotegowanie;

import java.util.Random;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author bikol
 */
public class UltraPotegowanieTest {
    
    public UltraPotegowanieTest() {
    }

    // Patryk Zywica
    @Test
    public void testPoteguj() {
        assertEquals("1", UltraPotegowanie.poteguj("1", "1"));
    }
    @Test
    public void testPoteguj2() {
        assertEquals("2", UltraPotegowanie.poteguj("2", "1"));
    }
    @Test
    public void testPoteguj3() {
        Random r = new Random();
        for(int i=0;i<1000;i++){
            int liczba = r.nextInt();
            assertEquals("1", UltraPotegowanie.poteguj(Integer.toString(liczba), "0"));
            
        }
    }
    /////////
}

@@ -981,11 +981,437 @@
 //////%0D%0A
+    %0D%0A    // Helena Galazka%0D%0A    @Test%0D%0A    public void testPoteguj4() %7B%0D%0A        assertEquals(%221.5%22, UltraPotegowanie.poteguj(%221.5%22, %221%22));%0D%0A    %7D%0D%0A    %0D%0A    @Test%0D%0A     public void testPoteguj5() %7B%0D%0A        assertEquals(%222.25%22, UltraPotegowanie.poteguj(%221.5%22, %222%22));%0D%0A    %7D%0D%0A     %0D%0A    @Test%0D%0A     public void testPoteguj6() %7B%0D%0A        assertEquals(%220.5%22, UltraPotegowanie.poteguj(%222%22, %22-1%22));%0D%0A    %7D%0D%0A     %0D%0A    /////////%0D%0A
 %7D%0D%0A

Update UltraPotegowanieTest.java