-
Notifications
You must be signed in to change notification settings - Fork 29
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
In Decimal class float method was contributed #608
base: main
Are you sure you want to change the base?
Conversation
{-| Test: Decimal/fromFloat | ||
expected = 1.2 | ||
-} | ||
decimalFromFloatTest1 : TestContext -> Decimal | ||
decimalFromFloatTest1 ctx = | ||
test ctx | ||
(Decimal.fromFloat 1.2) |
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.
Not sure if we need decimalFromFloatTest1.
decimalFromFloatTest looks to do the exact same thing with the exact same function -- fromFloat. import Morphir.SDK.Decimal as Decimal exposing (..)
exposes fromFloat (and other Decimal functions) so that we could call it directly.
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.
Ok, removed the unnecessary changes.
@@ -403,6 +403,7 @@ object EvaluatorMDMTests extends MorphirBaseSpec { | |||
suite("Decimal Tests")( | |||
suite("conversion")( | |||
testEvaluation("fromFloat")("decimalTests", "decimalFromFloatTest")(Data.Decimal(1.2)), | |||
testEvaluation("fromFloat")("decimalTests", "decimalFromFloatTest1")(Data.Decimal(1.2)), |
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 addition is necessary here?
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.
Agree, Removed the line.
No description provided.