Skip to content
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

Fixed ifNotFloat #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixed ifNotFloat #36

wants to merge 2 commits into from

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.

None yet

4 participants