Created
November 9, 2016 00:00
-
-
Save brayancruces/57e9c8bf466c284398cf8af4debdb2a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testeo; | |
public class Abaco { | |
double sumar(double a, double b) | |
{ | |
return a +b; | |
} | |
// restar | |
// multiplicar | |
// dividir | |
} | |
package testeo; | |
import static org.junit.Assert.*; | |
import junit.framework.Assert; | |
import org.junit.Test; | |
public class Test1 { | |
Abaco cal=new Abaco(); | |
@Test | |
public void test() { | |
Assert.assertEquals(5, cal.sumar(2,3), 0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment