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

Feature: Add octal support to Change IP Format. #620

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

csmith
Copy link
Contributor

@csmith csmith commented Aug 24, 2019

I couldn't see any tests for the existing functionality so I've added some that ensure each of the four input and output formats is tested once.

The logic for octal and decimal is very similar so I've pulled some of it out into a separate method to save duplicating all the bit-fiddling.

Also add test cases covering interchanging between all four
formats.
@CLAassistant
Copy link

CLAassistant commented Aug 24, 2019

CLA assistant check
All committers have signed the CLA.

@n1474335 n1474335 merged commit 6c9ce15 into gchq:master Aug 27, 2019
@csmith csmith deleted the ip-format-octal branch August 27, 2019 12:03
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.

3 participants