Skip to content

Commit d5a7f74

Browse files
Add unit test IP addresses with trailing dot (#25 and #26)
1 parent 1b8e56f commit d5a7f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/commoncrawl/net/TestURL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class TestURL {
3333
public static final List<String> ipv4URLs = new ArrayList<>();
3434
static {
3535
/* IP v4 addresses in various formats */
36-
String[] formats = { "%d.%d.%d.%d", "%d.%d.%d", "%d.%d", "%d" };
36+
String[] formats = { "%d.%d.%d.%d", "%d.%d.%d", "%d.%d", "%d", "%d.%d.%d.%d." };
3737
for (String format : formats) {
3838
String ipv4Host;
3939
if (format.length() >= 11) {

0 commit comments

Comments
 (0)