-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[tests] basic min/max test cases #566
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
Conversation
42623b3
to
3527e2c
Compare
@frootloops Thank you! We have some basic tests in Also, could you rewrite the tests using
|
3527e2c
to
065f834
Compare
@gribozavr can you have a look through the PR. I rewrite Thank you for |
065f834
to
e30126d
Compare
expectEqual(1, max(0, 0, 1)) | ||
} | ||
|
||
Algorithm.test("Min/Max identity check") { |
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.
You don't need to have separate value and identity tests. All value tests could just check identity as well.
8ce74e8
to
179600a
Compare
@gribozavr done |
r = t | ||
} | ||
var r = x | ||
for t in [y, z] + rest where t >= r { |
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.
You are still creating an array here, this will be slow.
@gribozavr what do you think about next code:
or do you prefer a classic way:
|
@frootloops As long as it would be possible to implement the idea discussed in #137, I'm ok with the short one. |
179600a
to
dcee533
Compare
dcee533
to
9f728c6
Compare
@gribozavr please have a look. I hope it's all right. |
@frootloops Looks great, thanks! From the tests we see that we already implement #137. |
[tests] basic min/max test cases
minor fixing: logical, and function issue lint
No description provided.