Skip to content

Update address.rs #740

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

syed-ghufran-hassan
Copy link

This test verifies that only valid addresses are returned.

This test verifies that only valid addresses are returned.
@PsypherPunk
Copy link
Collaborator

It looks like tests are failing due to the ordering of results:

assertion `left == right` failed
  left: [10.0.0.1, 192.168.1.1]
 right: [192.168.1.1, 10.0.0.1]

I think this is down to the fact we use a BTreeSet in parse_addresses (to remove duplicates) which means the input order may not match the output. You could update your test such that it doesn't assume the input order…?

Also, could you run cargo fmt as the GitHub diff suggests there's some indentation/line-breaks missing.

@syed-ghufran-hassan
Copy link
Author

syed-ghufran-hassan commented Feb 4, 2025 via email

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