Skip to content

Commit 0d2b6bf

Browse files
committed
Fix clang errors
1 parent 5b8f15a commit 0d2b6bf

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/test/java/com/thealgorithms/ciphers/a5/A5CipherTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ public class A5CipherTest {
1616
@BeforeEach
1717
void setUp() {
1818
// Initialize the session key and frame counter
19-
sessionKey = BitSet.valueOf(new long[]{0b1010101010101010L}); // Example 16-bit key
20-
frameCounter = BitSet.valueOf(new long[]{0b0000000000000001L}); // Example 16-bit frame counter
19+
sessionKey = BitSet.valueOf(new long[] {0b1010101010101010L}); // Example 16-bit key
20+
frameCounter = BitSet.valueOf(new long[] {0b0000000000000001L}); // Example 16-bit frame counter
2121
a5Cipher = new A5Cipher(sessionKey, frameCounter);
2222
}
2323

2424
@Test
2525
void testEncryptWithValidInput() {
26-
BitSet plainText = BitSet.valueOf(new long[]{0b1100110011001100L}); // Example plaintext
26+
BitSet plainText = BitSet.valueOf(new long[] {0b1100110011001100L}); // Example plaintext
2727
BitSet encrypted = a5Cipher.encrypt(plainText);
2828

2929
// The expected result depends on the key stream generated.
@@ -34,7 +34,7 @@ void testEncryptWithValidInput() {
3434

3535
@Test
3636
void testEncryptAllOnesInput() {
37-
BitSet plainText = BitSet.valueOf(new long[]{0b1111111111111111L}); // All ones
37+
BitSet plainText = BitSet.valueOf(new long[] {0b1111111111111111L}); // All ones
3838
BitSet encrypted = a5Cipher.encrypt(plainText);
3939

4040
// Similar to testEncryptWithValidInput, ensure that output isn't the same as input
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.thealgorithms.ciphers.a5;
2+
3+
public class A5KeyStreamGeneratorTest {
4+
}

0 commit comments

Comments
 (0)