Skip to content

Conversation

@MikePuzanov
Copy link
Owner

No description provided.

Copy link

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

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

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 () =

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