From fd1a3f7a1f0d84b071543676ff52ba076fe6e29f Mon Sep 17 00:00:00 2001 From: jannisfingerhut Date: Fri, 10 Feb 2023 01:29:00 +0100 Subject: [PATCH] =?UTF-8?q?Funktion=20Bin=C3=A4rRechner=20hinzugef=C3=BCgt?= =?UTF-8?q?=20+=20Ordnung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LernProgramm/testProgramm.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/LernProgramm/testProgramm.java b/LernProgramm/testProgramm.java index 5a56595..e845ebe 100644 --- a/LernProgramm/testProgramm.java +++ b/LernProgramm/testProgramm.java @@ -13,19 +13,17 @@ class testProgramm { @Test void test() { - assertTrue( true ); + assertTrue(true); } - - @Test - public void testPrimBis100() { - ByteArrayOutputStream out = new ByteArrayOutputStream(); - System.setOut(new PrintStream(out)); - ProgrammMain.PrimBis100(); + @Test + public void testPrimBis100() { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + System.setOut(new PrintStream(out)); - assertEquals("2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 ", out.toString()); - } + ProgrammMain.PrimBis100(); - + assertEquals("2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 ", out.toString()); + } }