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

Implemented the == operator and hashCode. #2

Merged
merged 5 commits into from
Mar 1, 2022
Merged

Implemented the == operator and hashCode. #2

merged 5 commits into from
Mar 1, 2022

Conversation

nullrocket
Copy link
Contributor

No description provided.

lib/src/json_pointer.dart Outdated Show resolved Hide resolved
@f3ath
Copy link
Owner

f3ath commented Mar 1, 2022

@nullrocket thanks for the PR. I have fixed the format check, could you please rebase on main?


expect(thisPointer == thatPointer, true);
expect(emptyPointer == explicitEmptyPointer, true);
expect(thisPointer != differentPointer, true);
Copy link
Owner

Choose a reason for hiding this comment

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

Sorry, I had to bump the dependencies. Would you please rebase once again. Also, let's add some assertions for the .hashCode:

    expect(thisPointer.hashCode == thatPointer.hashCode, true);
    expect(emptyPointer.hashCode == explicitEmptyPointer.hashCode, true);
    expect(thisPointer.hashCode != differentPointer.hashCode, true);

@f3ath
Copy link
Owner

f3ath commented Mar 1, 2022

@nullrocket The CI is failing due to .hashCode line being untested. I've updated dependencies, now it will tell which LoC it's unhappy about. Thanks for your patience :)

@f3ath
Copy link
Owner

f3ath commented Mar 1, 2022

Almost there. We just need the coverage #2 (comment)

@f3ath f3ath merged commit a287ad1 into f3ath:main Mar 1, 2022
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.

None yet

2 participants