Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added test for bug68

  • Loading branch information...
commit f13f1df5494d1ed867706ea7ad283d3fa10b1c2a 1 parent 4bfc1eb
@dustin dustin authored Trond Norbye committed
Showing with 21 additions and 0 deletions.
  1. +21 −0 t/issue_68.t
View
21 t/issue_68.t
@@ -0,0 +1,21 @@
+#!/usr/bin/perl
+
+use strict;
+use Test::More tests => 996;
+use FindBin qw($Bin);
+use lib "$Bin/lib";
+use MemcachedTest;
+
+my $server = new_memcached();
+my $sock = $server->sock;
+
+for (my $keyi = 1; $keyi < 250; $keyi++) {
+ my $key = "x" x $keyi;
+ print $sock "set $key 0 0 1\r\n9\r\n";
+ is (scalar <$sock>, "STORED\r\n", "stored $key");
+ mem_get_is($sock, $key, "9");
+ print $sock "incr $key 1\r\n";
+ is (scalar <$sock>, "10\r\n", "incr $key to 10");
+ mem_get_is($sock, $key, "10");
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.