Browse Source

Test: Test for null input

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

3
src/test/java/CalculationsTest.java

@ -13,5 +13,8 @@ public class CalculationsTest {
// Test with a negative number // Test with a negative number
assertEquals(16, calc.calculateSquare(-4)); assertEquals(16, calc.calculateSquare(-4));
// Test with zero
assertEquals(0, calc.calculateSquare(0));
} }
} }
Loading…
Cancel
Save