mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 08:18:03 +00:00
fixing
This commit is contained in:
parent
83942b2c05
commit
de19d19108
@ -167,7 +167,7 @@ public class E2E_Main {
|
|||||||
Assertions.assertNull(returnValue);
|
Assertions.assertNull(returnValue);
|
||||||
Assertions.assertEquals(3, byteArrayOutputStream.toString().length());
|
Assertions.assertEquals(3, byteArrayOutputStream.toString().length());
|
||||||
// durch die newline wird die Ausgabe um 2 Zeichen länger
|
// durch die newline wird die Ausgabe um 2 Zeichen länger
|
||||||
Assertions.assertEquals("3", byteArrayOutputStream.toString().substring(0, byteArrayOutputStream.toString().length() - 2));
|
Assertions.assertEquals("3", byteArrayOutputStream.toString().substring(0, 1));
|
||||||
System.setOut(originalOut);
|
System.setOut(originalOut);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assertions.fail();
|
Assertions.fail();
|
||||||
|
@ -143,7 +143,7 @@ public class E2E_Print {
|
|||||||
Assertions.assertNull(returnValue);
|
Assertions.assertNull(returnValue);
|
||||||
Assertions.assertEquals(3, byteArrayOutputStream.toString().length());
|
Assertions.assertEquals(3, byteArrayOutputStream.toString().length());
|
||||||
// durch die newline wird die Ausgabe um 2 Zeichen länger
|
// durch die newline wird die Ausgabe um 2 Zeichen länger
|
||||||
Assertions.assertEquals("a", byteArrayOutputStream.toString().substring(0, byteArrayOutputStream.toString().length() - 2));
|
Assertions.assertEquals("a", byteArrayOutputStream.toString().substring(0, 1));
|
||||||
System.setOut(originalOut);
|
System.setOut(originalOut);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assertions.fail();
|
Assertions.fail();
|
||||||
@ -165,7 +165,7 @@ public class E2E_Print {
|
|||||||
Assertions.assertNull(returnValue);
|
Assertions.assertNull(returnValue);
|
||||||
Assertions.assertEquals(6, byteArrayOutputStream.toString().length());
|
Assertions.assertEquals(6, byteArrayOutputStream.toString().length());
|
||||||
// durch die newline wird die Ausgabe um 2 Zeichen länger
|
// durch die newline wird die Ausgabe um 2 Zeichen länger
|
||||||
Assertions.assertEquals("true", byteArrayOutputStream.toString().substring(0, byteArrayOutputStream.toString().length() - 2));
|
Assertions.assertEquals("true", byteArrayOutputStream.toString().substring(0, 4));
|
||||||
System.setOut(originalOut);
|
System.setOut(originalOut);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Assertions.fail();
|
Assertions.fail();
|
||||||
|
@ -64,7 +64,7 @@ public class AllFeaturesInOne {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (withSpaceBetweenSteps) {
|
if (withSpaceBetweenSteps) {
|
||||||
print(' ');
|
print('L');
|
||||||
}
|
}
|
||||||
numberOfLetter = (numberOfLetter + 1) % 3;
|
numberOfLetter = (numberOfLetter + 1) % 3;
|
||||||
int sum = number1 + number2;
|
int sum = number1 + number2;
|
||||||
@ -89,7 +89,7 @@ public class AllFeaturesInOne {
|
|||||||
print(this.letter3);
|
print(this.letter3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print(' ');
|
print('L');
|
||||||
numberOfLetter = (numberOfLetter + 1) % 3;
|
numberOfLetter = (numberOfLetter + 1) % 3;
|
||||||
int number2OldValue = number2;
|
int number2OldValue = number2;
|
||||||
number2 *= number1;
|
number2 *= number1;
|
||||||
@ -115,7 +115,7 @@ public class AllFeaturesInOne {
|
|||||||
while (numberOfRepititions > 0) {
|
while (numberOfRepititions > 0) {
|
||||||
numberOfRepetitionsWithoutSkip++;
|
numberOfRepetitionsWithoutSkip++;
|
||||||
if (numberOfRepetitionsWithoutSkip == y) {
|
if (numberOfRepetitionsWithoutSkip == y) {
|
||||||
System.out.println(" ");
|
print('');
|
||||||
numberOfRepetitionsWithoutSkip = 0;
|
numberOfRepetitionsWithoutSkip = 0;
|
||||||
} else {
|
} else {
|
||||||
if (numberOfLetter == 0) {
|
if (numberOfLetter == 0) {
|
||||||
@ -139,7 +139,7 @@ public class AllFeaturesInOne {
|
|||||||
for (int i = 0; i < x; i++) {
|
for (int i = 0; i < x; i++) {
|
||||||
repititionsAbs++;
|
repititionsAbs++;
|
||||||
if (repititionsAbs % y == 0) {
|
if (repititionsAbs % y == 0) {
|
||||||
print(' ');
|
print('L');
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (numberOfLetter == 0) {
|
if (numberOfLetter == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user