From 306dd5dad1dd5428fd8fe7e7e0ddd8b7983abd12 Mon Sep 17 00:00:00 2001 From: Alena Bandarovich Date: Fri, 9 Feb 2024 22:46:51 +0100 Subject: [PATCH] Test: Test for null input --- 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 accfdae..29d2496 100644 --- a/src/test/java/CalculationsTest.java +++ b/src/test/java/CalculationsTest.java @@ -13,5 +13,8 @@ public class CalculationsTest { // Test with a negative number assertEquals(16, calc.calculateSquare(-4)); + // Test with zero + assertEquals(0, calc.calculateSquare(0)); + } }