From e70d6ccfd26707132506c150d8f27bb9ce5e5c72 Mon Sep 17 00:00:00 2001 From: fdai6040 Date: Thu, 2 Feb 2023 16:49:43 +0100 Subject: [PATCH] =?UTF-8?q?Test=20"Dezimal=20nach=20bin=C3=A4r"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 4af998f..ff2a433 100644 --- a/src/test/java/src/TasksFrameTest.java +++ b/src/test/java/src/TasksFrameTest.java @@ -147,6 +147,17 @@ class TasksFrameTest { int c = tasksFrame.round10(12); assertEquals(10, c); } + + @Test + void test_umrechnen(){ + TasksFrame tasksFrame = new TasksFrame(); + int a = Integer.parseInt(tasksFrame.umrechnen(15)); + assertEquals(1111, a); + int b = Integer.parseInt(tasksFrame.umrechnen(20)); + assertEquals(10100, b); + int c = Integer.parseInt(tasksFrame.umrechnen(48)); + assertEquals(110000, c); + } }