-
Notifications
You must be signed in to change notification settings - Fork 0
workflow #9
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?
workflow #9
Conversation
DedSec256
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.
Есть некоторые замечания
Workflow/Workflow/Program.fs
Outdated
|
|
||
|
|
||
| type RoundBuilder(i) = | ||
| let debug (x : float) (i : int) = Math.Round(x, i) |
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.
почему debug? (:
Workflow/Workflow/Program.fs
Outdated
| try | ||
| match Int32.TryParse x with | ||
| | true, x -> f x | ||
| | false, _ -> raise(ArgumentException()) | ||
| with | ||
| | :? ArgumentException -> None |
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.
А не проще ли сразу возвращать None вместо бросания эксепшена с последующим перехватом?
| open Program | ||
|
|
||
| [<Test>] | ||
| let RoundTest () = |
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.
Не хватает теста на отрицательное значение округления
No description provided.