Skip to content

Conversation

richb-hanover
Copy link

This PR adds a manyV6.test.js file that includes ~490 test cases for IPV6 addresses.

A long time ago (2013), my company added IPv6 to our networking product. We produced a whole suite of test cases to check our IPv6 validation code. You can review the original at: https://github.com/richb-intermapper/IPv6-Regex/blob/master/test-ipv6-regex.pl

This PR translates the original perl code to Javascript. It prints "." for successful tests, and a diagnostic message where it fails.

GOOD NEWS: validator.js succeeds with no changes on all the tests

To run:

The new file sits in test and is called as part of npm test

Checklist

  • [ x ] PR contains only changes related; no stray files, etc.
  • [ N/A ] README updated (where applicable)
  • [ x ] Tests written (where applicable)
  • [ x ] References provided in PR (where applicable)

Copy link

codecov bot commented Oct 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6f436be) to head (657d207).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2602   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          114       114           
  Lines         2536      2536           
  Branches       642       642           
=========================================
  Hits          2536      2536           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant