-
Notifications
You must be signed in to change notification settings - Fork 0
Java05. ДЗ 04, Егоров Антон #4
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?
Conversation
|
|
||
| public void setUp() { | ||
|
|
||
| fPlus3_5 = new Function1<Double, Double>() { |
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.
если это константы, зачем они в setUp?
| } | ||
|
|
||
| public void testPredicateBasic() { | ||
| assertEquals(true, Predicate.ALWAYS_TRUE.test(new Object())); |
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.
assertTrue
|
|
||
| public void testPredicateBasic() { | ||
| assertEquals(true, Predicate.ALWAYS_TRUE.test(new Object())); | ||
| assertEquals(false, Predicate.ALWAYS_FALSE.test(null)); |
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.
assertFalse
| public void testPredicateBasic() { | ||
| assertEquals(true, Predicate.ALWAYS_TRUE.test(new Object())); | ||
| assertEquals(false, Predicate.ALWAYS_FALSE.test(null)); | ||
|
|
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.
их ленивость не проверяется
| } | ||
| , "", Arrays.asList('a', 'b', 'c', 'd'))); | ||
| } | ||
| } |
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.
нигде не проверяются ? extends ..., ? super ...
Добавлены тесты на общность типов, расширены типы в некоторых местах.
|
|
||
| @Override | ||
| public boolean test(D0 arg) { | ||
| // TODO Auto-generated method stub |
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.
эти сгенерированные todo оставлять не надо
sproshev
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.
10
No description provided.