1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

adding a test for utf8 strings

This commit is contained in:
Orion Henry
2010-09-27 16:34:54 -07:00
parent 71763dcd66
commit 01068565d9

11
test.js
View File

@@ -439,6 +439,17 @@ tests.BLPOP = function () {
}, 500);
};
tests.UTF8 = function () {
var name = "UTF8";
var utf8_sample = "ಠ_ಠ";
client.set(["utf8test", utf8_sample], require_string("OK", name));
client.get(["utf8test"], function(err, obj) {
assert.strictEqual(null, err);
assert.strictEqual(utf8_sample, obj.toString('utf8'));
next(name);
});
};
tests.EXPIRE = function () {
var name = "EXPIRE";
client.set(['expiry key', 'bar'], require_string("OK", name));