Browse Source

Test: create test for positive numbers

remotes/origin/test/client/add-test-cases
Alena Bandarovich 11 months ago
parent
commit
dc0e1ba404
  1. 13
      src/test/java/CalculationsTest.java

13
src/test/java/CalculationsTest.java

@ -1,5 +1,14 @@
import junit.framework.TestCase;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class CalculationsTest extends TestCase {
public class CalculationsTest {
@Test
public void testCalculateSquare() {
Calculations calc = new Calculations();
// Test with a positive number
assertEquals(25, calc.calculateSquare(5));
}
} }
Loading…
Cancel
Save