From b94c310149ba2d99a4c1b6dcbe3fe6c1da04554c Mon Sep 17 00:00:00 2001 From: fdai6040 Date: Thu, 2 Feb 2023 14:01:11 +0100 Subject: [PATCH] Round10 Function Test --- src/test/java/src/TasksFrameTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/java/src/TasksFrameTest.java b/src/test/java/src/TasksFrameTest.java index ca296e1..4af998f 100644 --- a/src/test/java/src/TasksFrameTest.java +++ b/src/test/java/src/TasksFrameTest.java @@ -136,6 +136,17 @@ class TasksFrameTest { int c = tasksFrame.roundSum(13, 9, 26); assertEquals(50, c); } + + @Test + void test_round10(){ + TasksFrame tasksFrame = new TasksFrame(); + int a = tasksFrame.round10(15); + assertEquals(20, a); + int b = tasksFrame.round10(56); + assertEquals(60, b); + int c = tasksFrame.round10(12); + assertEquals(10, c); + } }