summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDustin Sallings <dustin@spy.net>2009-01-25 17:46:17 -0800
committerDustin Sallings <dustin@spy.net>2009-01-25 18:07:21 -0800
commitd1979bc10fe73ef4cf56186e64342f26778caefb (patch)
tree613c1f019369f0e000af0ac134643deac5545bd2 /t
parenta849144abe6c8bee0c444b759536e90062113352 (diff)
downloadmemcached-d1979bc10fe73ef4cf56186e64342f26778caefb.tar.gz
Added prepend test.
Diffstat (limited to 't')
-rwxr-xr-xt/binary.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/binary.t b/t/binary.t
index 2a1949c..dc3d3e0 100755
--- a/t/binary.t
+++ b/t/binary.t
@@ -272,7 +272,14 @@ diag "Append";
$check->($key, 19, $value . " more");
}
-diag "TODO: Prepend";
+diag "Prepend";
+{
+ my $key = "prependkey";
+ my $value = "some value";
+ $set->($key, 8, 19, $value);
+ $mc->_append_prepend(::CMD_PREPEND, $key, "prefixed ");
+ $check->($key, 19, "prefixed " . $value);
+}
diag "TODO: Silent append";