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

a bug in compare with a negative argument #25

Closed
Yaffle opened this issue Oct 21, 2016 · 1 comment
Closed

a bug in compare with a negative argument #25

Yaffle opened this issue Oct 21, 2016 · 1 comment
Labels

Comments

@Yaffle
Copy link
Contributor

Yaffle commented Oct 21, 2016

var crunch = new Crunch();
var a = crunch.parse("-9999999999999999");
var b = crunch.parse("0");
var c = crunch.compare(a, b);
console.log(c); // 1, should be -1

P.S.
May be transformIn is needed for compare.

@vukicevic vukicevic added the bug label Oct 23, 2016
@vukicevic
Copy link
Owner

Fixed in pull request #26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants