Algorithm-SkipList
view release on metacpan or search on metacpan
- moved debug method to after __END__ block
- renamed random_level to _random_level
- changed type checking to use isa() method
- updated documentation
0.02 Fri Nov 14 01:08:00 2003
- incorporated experimental code into module
- began writing initial test script
0.01 Fri Nov 14 00:50:00 2003
- original version; created by h2xs 1.21 with options
-X -n List::SkipList -v 0.01
0.00 Wed Nov 12 2003
- experimental versions, unreleased.
t/02-merge_append.t view on Meta::CPAN
# redefine $g
foreach my $i (qw( 2 4 6 8 10 )) {
$g->insert($i, -$i);
}
ok($g->size == 5);
$g->merge($g);
ok($g->size == 5);
# We want to test that mergine does not overwrite original values
$g->merge($f);
ok($g->size == 10);
foreach my $i (1..10) {
ok($g->find($i) == (($i%2)?$i:-$i) );
}
( run in 0.224 second using v1.01-cache-2.11-cpan-1c8d708658b )