94 |
diag "offset $s, limit: $l, expected: $e"; |
diag "offset $s, limit: $l, expected: $e"; |
95 |
|
|
96 |
ok($s = $input->open( path => "$abs_path/winisis/BIBL", offset => $s, limit => $l, debug => $debug ), "open winisis"); |
ok($s = $input->open( path => "$abs_path/winisis/BIBL", offset => $s, limit => $l, debug => $debug ), "open winisis"); |
97 |
cmp_ok($s, '==', $size, "db size from open = $size"); |
cmp_ok($s, '==', $size, "db size"); |
98 |
cmp_ok($input->size, '==', $e, "input->size = $e"); |
cmp_ok($input->size, '==', $e, "input->size = $e"); |
99 |
} |
} |
100 |
|
|
101 |
test_start_limit($input, 1, 3, 3); |
test_start_limit($input, 1, 3, 3); |
102 |
test_start_limit($input, $size, 3, 0); |
test_start_limit($input, $size, 3, 0); |
103 |
test_start_limit($input, 3, $size, $size - 2); |
test_start_limit($input, 3, $size, $size - 3); |
104 |
test_start_limit($input, 1, $size + 2, $size); |
test_start_limit($input, 1, $size, $size - 1); |
105 |
|
|
106 |
ok(my $s = $input->stats, "$module stats"); |
ok(my $s = $input->stats, "$module stats"); |
107 |
diag "stats:\n$s" if ($debug); |
diag "stats:\n$s" if ($debug); |