-
Notifications
You must be signed in to change notification settings - Fork 23
fix: better parse sci notation with +
and -
#55
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
Conversation
test/unit.js
Outdated
}, | ||
{ | ||
fixture: "1.1e--++1e", | ||
expected: { number: "1.1e-", unit: "-++1e" } |
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.
Is this valid number?
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.
@TrySound no, we already stop parsing for second e
, so i use same logic for +
and -
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.
Our fixtures contain:
{
fixture: "2.",
expected: { number: "2.", unit: "" }
},
2.
is not valid number too 😄 (in css)
c87a890
to
6e5b710
Compare
/cc @TrySound my mistake |
/cc @TrySound should we fix |
Yep. Looks like it's the wrong case. Don't really remember why I added it. |
@TrySound 👍 i will send a PR |
fix #54
/cc @TrySound