-
Notifications
You must be signed in to change notification settings - Fork 33
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
node.js simple tests #1
Comments
Indeed, not all functionalities from node are covered yet. Will add them whenever possible. Feel free to submit a PR too :-) |
no hurry. I just wanted to document it. |
Is this report still current or has the library been superseded or something? |
The report is still current. The library is functional as it is but does not implement all functionalities from node yet. |
As a relative JS noob I'm wondering if it's even possible to fix writing and reading via |
@ysangkok : Ah, just as I feared. Thanks! |
Ah, I just got bitten by the |
I'm all about fixing the |
@toots I'm curious to know which technique you plan to use for fixing the |
FYI @substack is working on a patch for the |
Hi all, @alexstrat I have no preference as to which technique to use, my only concerns are:
I have not yet started working on it but, @GraemeF : any patch for this would be much welcome and I'd try to review and merge in a timely fashion, should that happen! :-) |
Here's the |
I tried to run this module with the Buffer tests from node
( https://github.com/joyent/node/blob/master/test/simple/test-buffer.js )
Tests run in Chrome 19.0.1084.52 m. May not all tests can be fixed...
I tried to omit duplicate errors.
This are the results:
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L33
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L48
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L186
writing and reading via
buffer[number]
does not work. This causes that error. (and that in L207)https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L250
Encodings: 'ucs2', 'utf-16le', 'binary'
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L320
the base64 decoder should ignores whitespace and illegal chars.
Invalid string. Length must be a multiple of 4
https://github.com/beatgammit/base64-js/blob/master/lib/b64.js#L10 should throw an Error not a string!
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L343
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L379 and more
Invalid string. Length must be a multiple of 4
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L432
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L569
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L605
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L623
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L706
https://github.com/joyent/node/blob/master/test/simple/test-buffer.js#L719
The text was updated successfully, but these errors were encountered: