Skip to content

Instantly share code, notes, and snippets.

@brayancruces
Created November 9, 2016 00:00
Show Gist options
  • Save brayancruces/57e9c8bf466c284398cf8af4debdb2a4 to your computer and use it in GitHub Desktop.
Save brayancruces/57e9c8bf466c284398cf8af4debdb2a4 to your computer and use it in GitHub Desktop.
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