Skip to content

Conversation

@DmKazakov
Copy link
Owner

No description provided.

Copy link
Collaborator

@yurii-litvinov yurii-litvinov left a comment

Choose a reason for hiding this comment

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

.idea/workspace.xml не нужен. В остальном всё хорошо. И, как я понимаю, Вам зачёт, первому из группы :)

* @param path specified path
* @return stream of Strings
*/
private static Stream<String> safeLines(Path path) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Можно было бы сделать её лямбдой, чтобы всё реально было в одно выражение


@Test
public void testPiDividedBy4() {
assertEquals(0.785, SecondPartTasks.piDividedBy4(), 0.001);
Copy link
Collaborator

Choose a reason for hiding this comment

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

0.785 --- антипаттерн "магическая константа", лучше Math.PI / 4

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