Skip to content

workflow#9

Open
MikePuzanov wants to merge 3 commits intomasterfrom
Workflow
Open

workflow#9
MikePuzanov wants to merge 3 commits intomasterfrom
Workflow

Conversation

@MikePuzanov
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@DedSec256 DedSec256 left a comment

Choose a reason for hiding this comment

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

Есть некоторые замечания



type RoundBuilder(i) =
let debug (x : float) (i : int) = Math.Round(x, i)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

почему debug? (:

Comment on lines +12 to +17
try
match Int32.TryParse x with
| true, x -> f x
| false, _ -> raise(ArgumentException())
with
| :? ArgumentException -> None
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

А не проще ли сразу возвращать None вместо бросания эксепшена с последующим перехватом?

open Program

[<Test>]
let RoundTest () =
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Не хватает теста на отрицательное значение округления

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