Skip to content

Commit

Permalink
Merge pull request redis#270 from chakrit/master
Browse files Browse the repository at this point in the history
Test for redis#267
  • Loading branch information
mranney committed Sep 11, 2012
2 parents 4a7e74b + 587d4a3 commit 5a251a0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -817,12 +817,19 @@ tests.DBSIZE = function () {
client.DBSIZE([], last(name, require_number_pos("DBSIZE")));
};

tests.GET = function () {
var name = "GET";
tests.GET_1 = function () {
var name = "GET_1";
client.set(["get key", "get val"], require_string("OK", name));
client.GET(["get key"], last(name, require_string("get val", name)));
};

tests.GET_2 = function() {
var name = "GET_2";

// tests handling of non-existent keys
client.GET('this_key_shouldnt_exist', last(name, require_null(name)));
};

tests.SET = function () {
var name = "SET";
client.SET(["set key", "set val"], require_string("OK", name));
Expand Down

0 comments on commit 5a251a0

Please sign in to comment.