Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

assert_same_elements optimization #1

Merged
1 commit merged into from Jan 29, 2011

Conversation

Projects
None yet
1 participant
Contributor

misfo commented Jan 28, 2011

For arrays that have duplicate elements, assert_same_elements counts how many times that element occurs in the array multiple times. I made a branch that prevents that re-work
https://github.com/misfo/shoulda-context/tree/assert_same_elements-optimization

Also, this branch will walk your dog and give your grandma high fives

small performance optimization of assert_same_elements
prevent re-counting the number of occurrences there are in arrays for duplicated values

travisjeffery pushed a commit that referenced this pull request Nov 6, 2016

Merge pull request #1 from kitcheck/use_class_eval
Uses class eval to not lose context

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment