summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2009-01-25 17:50:45 -0800
committerDustin Sallings <dustin@spy.net>2009-01-25 18:07:21 -0800
commita641717f1d5b47e28b1fc667a6805a62608f56c8 (patch)
tree30b94925c2522fa5da8e91dfe8c081c03728a3bf /t
parentd1979bc10fe73ef4cf56186e64342f26778caefb (diff)
downloadmemcached-a641717f1d5b47e28b1fc667a6805a62608f56c8.tar.gz
Silent append and prepend tests.
Diffstat (limited to 't')
-rwxr-xr-xt/binary.t18
1 files changed, 16 insertions, 2 deletions
diff --git a/t/binary.t b/t/binary.t
index dc3d3e0..05037a4 100755
--- a/t/binary.t
+++ b/t/binary.t
@@ -281,9 +281,23 @@ diag "Prepend";
$check->($key, 19, "prefixed " . $value);
}
-diag "TODO: Silent append";
+diag "Silent append";
+{
+ my $key = "appendqkey";
+ my $value = "some value";
+ $set->($key, 8, 19, $value);
+ $mc->send_silent(::CMD_APPENDQ, $key, " more", 7284492);
+ $check->($key, 19, $value . " more");
+}
-diag "TODO: Silent prepend";
+diag "Silent prepend";
+{
+ my $key = "prependqkey";
+ my $value = "some value";
+ $set->($key, 8, 19, $value);
+ $mc->send_silent(::CMD_PREPENDQ, $key, "prefixed ", 7284492);
+ $check->($key, 19, "prefixed " . $value);
+}
package MC::Client;