You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
adding a test for utf8 strings
This commit is contained in:
11
test.js
11
test.js
@@ -439,6 +439,17 @@ tests.BLPOP = function () {
|
|||||||
}, 500);
|
}, 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 () {
|
tests.EXPIRE = function () {
|
||||||
var name = "EXPIRE";
|
var name = "EXPIRE";
|
||||||
client.set(['expiry key', 'bar'], require_string("OK", name));
|
client.set(['expiry key', 'bar'], require_string("OK", name));
|
||||||
|
Reference in New Issue
Block a user