Skip to content

Commit 065d351

Browse files
fix: Format JugglerSequenceTest
1 parent b5fdcab commit 065d351

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,42 @@
11
package com.thealgorithms.maths;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
4-
import org.junit.jupiter.api.Test;
4+
55
import java.io.ByteArrayOutputStream;
66
import java.io.PrintStream;
7+
import org.junit.jupiter.api.Test;
78

89
class JugglerSequenceTest {
910

1011
@Test
1112
void testJugglerSequenceWithThree() {
12-
// Capture System.out
1313
ByteArrayOutputStream outContent = new ByteArrayOutputStream();
1414
System.setOut(new PrintStream(outContent));
15-
1615
JugglerSequence.jugglerSequence(3);
17-
1816
assertEquals("3,5,11,36,6,2,1\n", outContent.toString());
1917
}
2018

2119
@Test
2220
void testJugglerSequenceWithTwo() {
2321
ByteArrayOutputStream outContent = new ByteArrayOutputStream();
2422
System.setOut(new PrintStream(outContent));
25-
2623
JugglerSequence.jugglerSequence(2);
27-
2824
assertEquals("2,1\n", outContent.toString());
2925
}
3026

3127
@Test
3228
void testJugglerSequenceWithNine() {
3329
ByteArrayOutputStream outContent = new ByteArrayOutputStream();
3430
System.setOut(new PrintStream(outContent));
35-
3631
JugglerSequence.jugglerSequence(9);
37-
3832
assertEquals("9,27,140,11,36,6,2,1\n", outContent.toString());
3933
}
4034

4135
@Test
4236
void testJugglerSequenceWithOne() {
4337
ByteArrayOutputStream outContent = new ByteArrayOutputStream();
4438
System.setOut(new PrintStream(outContent));
45-
4639
JugglerSequence.jugglerSequence(1);
47-
4840
assertEquals("1\n", outContent.toString());
4941
}
5042
}
51-

0 commit comments

Comments
 (0)