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

Bug in dictionary equality #5

Open
sm-g opened this issue Oct 2, 2018 · 0 comments
Open

Bug in dictionary equality #5

sm-g opened this issue Oct 2, 2018 · 0 comments

Comments

@sm-g
Copy link

sm-g commented Oct 2, 2018

this test fails

       public void Test()
       {
           var dico1 = new Dictionary<int, string>() { { 1, "uno" }, { 3, "tres" } };
           var dico2 = new Dictionary<int, string>() { { 1, "uno" }, { 3, "tres" }, { 4, "quatro" } };

           var byValue1 = new DictionaryByValue<int, string>(dico1);
           var byValue2 = new DictionaryByValue<int, string>(dico2);

           Check.That(byValue1).IsNotEqualTo(byValue2);
       }

For anyone who also ran into it - you may use my ByValue library, which have no such issue (see these tests).

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

No branches or pull requests

1 participant