Created
February 11, 2011 10:50
-
-
Save francois2metz/822201 to your computer and use it in GitHub Desktop.
node-base64 bug ? https://github.com/pkrumins/node-base64/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var base64 = require('base64'); | |
var assert = require('assert'); | |
function roundTrip(str) { | |
assert.equal(base64.decode(base64.encode(new Buffer(str, 'utf8'))), str); | |
} | |
['Hello', 'États-Unis'].forEach(roundTrip); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment