Skip to content

Conversation

@MalgAmoe
Copy link

Fixed ifNotFloat to create an error in case it could not be parsed to a float.
Previously it was creating the error in case it could be parsed to a float.

Changed ifNotFloat to create an error in case the string cannot be parsed to a float.
Previously it was creating the error if the string could be parsed to a float.
@grillbiff
Copy link

any update on this?

@ewan-laws
Copy link

ifNotFloat doesn't seem to be working for me either.

@MalgAmoe
Copy link
Author

Yes the logic is inverted, that is why I tried to submit this merge request.
I don't know if I did something wrong with the merge request, I am new to this kind of things.

@ewan-laws
Copy link

Thanks, I'm new too, I'm assuming your commit works so I'm going to simply copy the contents of Validate.elm with your fix and see if I can get things working.

@ewan-laws
Copy link

ewan-laws commented Jan 23, 2019

Tested it and it works, thanks.

I guess this is a good argument for automated tests

@ivarni
Copy link

ivarni commented Jun 29, 2019

I spent the last hour staring at my code to figure out what was going wrong and then it was this 🤣

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.

4 participants