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

sundial HW - with 4 tests #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jkoul
Copy link

@jkoul jkoul commented Aug 20, 2015

Comfort: 5
Completeness: 5

I had a tougher time solving the tests than creating them, which is probably a good sign. I chose tests that would yield an simple angle of 0 (12:00), positive and less than 180 (1:30), exactly 180 (6:00) and negative (4:00). If I have any code questions, I'm wondering if there's any way to refactor the code in the angle function, especially the 12 --> 0 part and the use of absolute value multiple times.

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