From 0e75fd599d45e02207011e7a66bf20f67e8675ad Mon Sep 17 00:00:00 2001 From: Alena Bandarovich Date: Fri, 9 Feb 2024 22:44:24 +0100 Subject: [PATCH] Test: Add test for negative numbers --- src/test/java/CalculationsTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/CalculationsTest.java b/src/test/java/CalculationsTest.java index 9b6a1df..accfdae 100644 --- a/src/test/java/CalculationsTest.java +++ b/src/test/java/CalculationsTest.java @@ -10,5 +10,8 @@ public class CalculationsTest { // Test with a positive number assertEquals(25, calc.calculateSquare(5)); + // Test with a negative number + assertEquals(16, calc.calculateSquare(-4)); + } }