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

Fix for unstable comparison between string and float and upgrading jasmine-node #54

Closed
wants to merge 2 commits into from

Conversation

thefourtheye
Copy link
Contributor

  • The condition operand === 0 || operand === -0 will never be met, if the operand is a string. Demo http://jsfiddle.net/prHDQ/
  • Introducing a new function toint which converts a floating point number to an integer.
  • Upgrading jasmine-node. The older version of jasmine-node fails when the node's version has a two digit version number. I had to upgrade this to run the tests.

@sethkinast
Copy link
Contributor

The math part is valuable. The jasmine part has bitrotted. I'll pull your branch and update it.

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.

2 participants