Skip to content

Conversation

@pvktk
Copy link
Owner

@pvktk pvktk commented Apr 23, 2018

No description provided.


public void setUp() {

fPlus3_5 = new Function1<Double, Double>() {
Copy link

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()));
Copy link

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));
Copy link

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));

Copy link

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')));
}
}
Copy link

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

эти сгенерированные todo оставлять не надо

Copy link

@sproshev sproshev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10

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.

3 participants