From 62a43b0f56fc44b2705e37b42b6c8a2c918cb914 Mon Sep 17 00:00:00 2001 From: hhddaatt Date: Sat, 15 Jun 2024 20:23:36 +0530 Subject: [PATCH 1/5] Update TestCalculator.java changes --- src/example/junit/TestCalculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/example/junit/TestCalculator.java b/src/example/junit/TestCalculator.java index c7704e2e..b085e395 100644 --- a/src/example/junit/TestCalculator.java +++ b/src/example/junit/TestCalculator.java @@ -48,7 +48,7 @@ public void testDivide() { @Test(expected = ArithmeticException.class) public void testDivideByZero() { - calc.divide(100.5, 0); + calc.divid(100.5, 0); } } From 18632eab43adc6505d44d26ef1d34947628faa1e Mon Sep 17 00:00:00 2001 From: hhddaatt Date: Sat, 15 Jun 2024 20:35:04 +0530 Subject: [PATCH 2/5] Update TestCalculator.java --- src/example/junit/TestCalculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/example/junit/TestCalculator.java b/src/example/junit/TestCalculator.java index b085e395..c7704e2e 100644 --- a/src/example/junit/TestCalculator.java +++ b/src/example/junit/TestCalculator.java @@ -48,7 +48,7 @@ public void testDivide() { @Test(expected = ArithmeticException.class) public void testDivideByZero() { - calc.divid(100.5, 0); + calc.divide(100.5, 0); } } From 92195993dbd869afac0a010618c7a5b78de537fc Mon Sep 17 00:00:00 2001 From: hhddaatt Date: Sat, 15 Jun 2024 20:48:45 +0530 Subject: [PATCH 3/5] Update TestCalculator.java --- src/example/junit/TestCalculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/example/junit/TestCalculator.java b/src/example/junit/TestCalculator.java index c7704e2e..069a0cf5 100644 --- a/src/example/junit/TestCalculator.java +++ b/src/example/junit/TestCalculator.java @@ -48,7 +48,7 @@ public void testDivide() { @Test(expected = ArithmeticException.class) public void testDivideByZero() { - calc.divide(100.5, 0); + calc.divide(1000.5, 0); } } From 5b11cfab4881f97f7a375e27a9b39d6222d5ec29 Mon Sep 17 00:00:00 2001 From: hhddaatt Date: Tue, 2 Jul 2024 10:20:22 +0530 Subject: [PATCH 4/5] Update TestCalculator.java --- src/example/junit/TestCalculator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/example/junit/TestCalculator.java b/src/example/junit/TestCalculator.java index 069a0cf5..c198fe4d 100644 --- a/src/example/junit/TestCalculator.java +++ b/src/example/junit/TestCalculator.java @@ -24,8 +24,8 @@ public void tearDown() throws Exception { @Test public void testAdd() { - double result = calc.add(10,20); - org.junit.Assert.assertEquals(30, result, 0); + double result = calc.add(100,20); + org.junit.Assert.assertEquals(120, result, 0); } @Test From 6124028d6bbfd1f0dd671e533490895e841e7327 Mon Sep 17 00:00:00 2001 From: hhddaatt Date: Tue, 2 Jul 2024 10:29:46 +0530 Subject: [PATCH 5/5] Update TestCalculator.java --- src/example/junit/TestCalculator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/example/junit/TestCalculator.java b/src/example/junit/TestCalculator.java index c198fe4d..069a0cf5 100644 --- a/src/example/junit/TestCalculator.java +++ b/src/example/junit/TestCalculator.java @@ -24,8 +24,8 @@ public void tearDown() throws Exception { @Test public void testAdd() { - double result = calc.add(100,20); - org.junit.Assert.assertEquals(120, result, 0); + double result = calc.add(10,20); + org.junit.Assert.assertEquals(30, result, 0); } @Test