Browse Source

Test "Dezimal nach binär"

remotes/origin/develop
fdai6040 2 years ago
parent
commit
e70d6ccfd2
  1. 11
      src/test/java/src/TasksFrameTest.java

11
src/test/java/src/TasksFrameTest.java

@ -147,6 +147,17 @@ class TasksFrameTest {
int c = tasksFrame.round10(12); int c = tasksFrame.round10(12);
assertEquals(10, c); 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);
}
} }

Loading…
Cancel
Save