+
+ my $mid_re = qr/\Q$mid\E/o;
+ while (length($digits) > 8) {
+ $res = $cb->(GET("/test/$ua.$digits/"));
+ is($res->code, 300, 'partial match found while truncated');
+ like($res->content, qr/\b1 partial match found\b/);
+ like($res->content, $mid_re, 'found mid in response');
+ chop($digits);
+ }