-
Notifications
You must be signed in to change notification settings - Fork 15
Pull request #14
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
base: master
Are you sure you want to change the base?
Pull request #14
Conversation
SeunginLyu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. A few lines of inline comments wouldn't hurt though!
|
|
||
| building_blocks = ['x','y','cos_pi','sin_pi','prod','avg','tan_pi','substract',] | ||
| pick = random.choice(building_blocks) | ||
| i = random.randint(min_depth, max_depth) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something like random_depth would be a more appropriate variable name. i does not give you any semantic information about the variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I don't see you using it anywhere else in the code.
| if __name__ == '__main__': | ||
| import doctest | ||
| doctest.testmod() | ||
| #doctest.testmod(verbose = True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove comments for your final submission
| # TODO: implement this | ||
| pass | ||
|
|
||
| output_val = input_interval_end - input_interval_start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be useful to add more unit tests for this function, just to confirm that it works for all ranges.
No description provided.