Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support all the range of valid ipV4 #393

Merged
merged 3 commits into from
Sep 8, 2019
Merged

Support all the range of valid ipV4 #393

merged 3 commits into from
Sep 8, 2019

Conversation

dubzzz
Copy link
Owner

@dubzzz dubzzz commented Jul 9, 2019

No description provided.

@coveralls
Copy link

coveralls commented Jul 9, 2019

Coverage Status

Coverage increased (+0.1%) to 97.054% when pulling e0b34d2 on fest/ipv4-extended into 147e0b3 on master.

@dubzzz
Copy link
Owner Author

dubzzz commented Aug 16, 2019

According to a recent thread on Twitter, it seems that fast-check already support all the range of IPv6 addresses: https://twitter.com/ndubien/status/1161190040212516869?s=19

@dubzzz
Copy link
Owner Author

dubzzz commented Aug 16, 2019

Maybe an update missing for withExtendedIp

@dubzzz
Copy link
Owner Author

dubzzz commented Aug 26, 2019

IPv6 can still be treated by adding 0 or mixing upper case and lower case within the same IP address

It will be treated as a FAR

Copy link
Owner Author

@dubzzz dubzzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next step: extend it to IPv6 by adding mixed case IPs

return `0${Number(v).toString(8)}`;
case 'hex':
return `0x${Number(v).toString(16)}`;
case 'HEX':
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed anymore: the uppercase can be handled by the feature #426

@dubzzz dubzzz force-pushed the fest/ipv4-extended branch from b8335df to e0b34d2 Compare September 8, 2019 23:03
@dubzzz dubzzz merged commit beea095 into master Sep 8, 2019
@dubzzz dubzzz deleted the fest/ipv4-extended branch September 8, 2019 23:38
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.

2 participants