git.shiar.nl
/
perl
/
list-index.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b6d4802
)
++: distribution tests
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 14 Nov 2009 19:00:16 +0000
(20:00 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 14 Nov 2009 19:00:16 +0000
(20:00 +0100)
t/10-ranges.t
patch
|
blob
|
history
diff --git
a/t/10-ranges.t
b/t/10-ranges.t
index 55df649fd835118519560f6bd7e69eb7332862ca..f935820eaf99904bb4007478b3b3c51be8eb568b 100644
(file)
--- a/
t/10-ranges.t
+++ b/
t/10-ranges.t
@@
-56,18
+56,18
@@
subtest 'context' => sub {
subtest 'distribution' => sub {
plan tests => 2;
my $index = List::Index->new([qw(
subtest 'distribution' => sub {
plan tests => 2;
my $index = List::Index->new([qw(
- kkeg kl km kmlu knsy
koxb kpeo kqbt krzu ktyp
- kuap ku
y kvbc kyy kzb lc lg lgaa lgbv lgbw
- lgu
lij ljr ljs lka
lkq lks lln llq llx
+ kkeg kl km kmlu knsy
koxb kpeo kuaa kuab kuac
+ kuap ku
aq kuq kux kzb lc lg lgu lgua lguc
+ lgu
q lgur lgus lgx lka
lkq lks lln llq llx
)]) or return;
TODO: {
local $TODO = 'under development';
is_deeply(
)]) or return;
TODO: {
local $TODO = 'under development';
is_deeply(
- $index->ranges({ pagesize=>10, context=>
5
}),
- #
after 'kuap' forwards to 'kzb', 'lgu' shouldn't go back to 'lc
'
- #
otherwise we get qw[-k l-]
- [qw(-k
l-lg
lgu-)],
- 'lookbehind
after full lookahead
'
+ $index->ranges({ pagesize=>10, context=>
3
}),
+ #
shorten 'kuap' to 'ku' because lookbehind is 'kp...
'
+ #
'lguq' matches 'lg', but may only backtrack to 'lgu'
+ [qw(-k
t ku-lgt
lgu-)],
+ 'lookbehind'
);
}
is_deeply(
);
}
is_deeply(