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

Sequence of numbers in a set #2797

Closed
carnivean opened this issue Aug 28, 2015 · 1 comment
Closed

Sequence of numbers in a set #2797

carnivean opened this issue Aug 28, 2015 · 1 comment

Comments

@carnivean
Copy link

Challenge http://freecodecamp.com/challenges/bonfire-symmetric-difference has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

The deepEqual test for the array needs the numbers in the same sequence, but for a set of numbers, the sequence doesn't matter. My solution was getting the right answer in the wrong order, so it didn't count. In the end I had to hack my solution so that it changed the order of the numbers, which is extremly bad style....

Maybe make more than one deepEqual test one for every possible permutation of the numbers and it is correct if one of the deepEqual tests is correct?

@dmytroyarmak
Copy link
Contributor

I agree that order of numbers in answer shouldn't matter. I'll try to fix this issue.

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

2 participants