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

Integers pretty-printed with a trailing ".0" #3

Open
arjunguha opened this issue Jun 10, 2012 · 1 comment
Open

Integers pretty-printed with a trailing ".0" #3

arjunguha opened this issue Jun 10, 2012 · 1 comment

Comments

@arjunguha
Copy link
Member

E.g., the expression "2" prints as "2.0". So, the parse.pretty.parse tests fail.

@achudnov
Copy link
Contributor

Couldn't reproduce. Quickly tried the following tests:

parseJavaScriptFromString "" "2" -- => Right (Script (line 1, column 1) [ExprStmt (line 1, column 1) (ListExpr (line 1, column 1) [IntLit (line 1, column 1) 2])])
renderExpression $ IntLit () 2 -- => "2"
javaScript $ Script () [ExprStmt () (IntLit () 2)] -- => "2;"

Seems that both the parser and the pretty-printer work correctly, at least, w.r.t. numbers. Could you, please, post a small test-case for the bug?

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

No branches or pull requests

2 participants