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

Will Fox #15

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

Conversation

willfox0409
Copy link

@willfox0409 willfox0409 commented Jan 7, 2025

Generally I thought this IC went well, slow but well.

I got stalled on the #register_candidate method early on actually. I was initializing the new candidate objects in my test instead of implementing that code INSIDE the #register_candidate method. That idea still trips me up a bit, initializing an object from one class within a method from a different class.

I was able to accomplish the iterating using .each which is my preferred enumerable. I should have used the .times method to register my 'vote_for' command methods in the #vote_counts test, but I forgot the correct syntax and ran out of time to look it up. Not a big deal, but all of that repetition makes for a congested block of code.

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.

1 participant