-
Notifications
You must be signed in to change notification settings - Fork 45
Added missing 3rd (of 4) arg to jsnums.toRepeatingDecimal() calls #556 #588
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
base: horizon
Are you sure you want to change the base?
Conversation
…ide.js, output-ui.js brownplt#556
The code change looks reasonable. But do we have a test to make sure this is correct? The original issue definitely had something that triggered this bug, so we should be able to extract a regression test for this... |
@blerner @ds26gte here's the file that exposes the bug (evaluate |
This seems like much more than a missing errback issue: somehow the parsing of this sheet is leading to a rational with a 0 denominator. The string renderers show it, the ![]() https://code.pyret.org/editor#share=1a1Pd-fdFlF6rj3QfkDP-St8LNbhzdV8r&v=fee2ecd The data is:
So somehow in the sheets reader we are getting ![]() |
Note that the effect of the code in this PR is just to raise a nicely rendered |
This sounds like something that's easily reproducible as a JS regression test, then? I.e. take the string |
But I think the field content is actually According to Pyret, the value inside that |
Hmmm, I may have had stale state in my browser window somehow; refreshing made the problem go away, so /shrug? |
OK, the culprit is
|
@ds26gte if you're still on this: a useful way to proceed would be to figure out how to write tests for |
These occur in ide.js and output-ui.js.