Skip to content

Commit 0a4a18e

Browse files
committed
#80 applied coderabbit review
1 parent 3a3f1eb commit 0a4a18e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

captchaservice-backend/src/test/java/de/muenchen/captchaservice/util/networkaddresscalculator/NetworkAddressCalculatorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ void testIPv6_ShortPrefix() {
9494
@Test
9595
void testIPv6_NonOctetBoundary() {
9696
String ip = "2001:db8:85a3:8d3:1319:8a2e:370:7334";
97+
// /70 = 4 complete hextets (64 bits) + 6 bits from 5th hextet (1319 -> 1000)
9798
int netSize = 70; // 64 bits (4 hextets) + 6 bits into the 5th hextet
98-
String expected = "2001:db8:85a3:0:400:0:0:0";
99-
expected = "2001:db8:85a3:8d3:1000:0:0:0";
99+
String expected = "2001:db8:85a3:8d3:1000:0:0:0";
100100
assertEquals(expected, NetworkAddressCalculator.getNetworkAddress(ip, netSize));
101101
}
102102

0 commit comments

Comments
 (0)