-
Notifications
You must be signed in to change notification settings - Fork 28
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
int generator and test #293
int generator and test #293
Conversation
Head branch was pushed to by a user without write access
tests/test_int_generator.py
Outdated
result = random_integers(self.rng, range[0], range[1]) | ||
for x in result: | ||
self.assertGreaterEqual(x, range[0]) | ||
self.assertLessEqual(x, range[1]) |
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.
eof line here
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.
+1
|
||
:return: np array of integers | ||
""" | ||
return rng.integers(min_value, max_value, (num_rows,)) |
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.
new line EOF
tests/test_int_generator.py
Outdated
result = random_integers(self.rng, range[0], range[1]) | ||
for x in result: | ||
self.assertGreaterEqual(x, range[0]) | ||
self.assertLessEqual(x, range[1]) |
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.
+1
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
int generator and test
adding: