Skip to content

Commit 877109c

Browse files
Update test/test-pdf-parsing.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 0988d9f commit 877109c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test-pdf-parsing.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ async function testPageFiltering() {
119119
console.log(`Pages returned: ${result3.pages.length}`);
120120
console.log(`Page numbers: ${result3.pages.map(p => p.pageNumber).join(', ')}`);
121121

122-
// Case 4: Page Range (Large Length) - All Pages
122+
// Case 4: Page Range (Large Length) - All Pages from start
123123
console.log('\nCase 4: Page Range { offset: 0, length: 100 } (All Pages)');
124124
const result4 = await parsePdfToMarkdown(samplePath, { offset: 0, length: 100 });
125125
console.log(`Pages returned: ${result4.pages.length}`);
126126
console.log(`Page numbers: ${result4.pages.map(p => p.pageNumber).join(', ')}`);
127127

128-
// Case 4: Page Range (Large Length) - All Pages
129-
console.log('\nCase 5: Page Range { offset: 0, length: 100 } (All Pages)');
128+
// Case 5: Page Range (Large Negative Offset) - All Pages from end
129+
console.log('\nCase 5: Page Range { offset: -100, length: 100 } (All Pages from end)');
130130
const result5 = await parsePdfToMarkdown(samplePath, { offset: -100, length: 100 });
131131
console.log(`Pages returned: ${result5.pages.length}`);
132132
console.log(`Page numbers: ${result5.pages.map(p => p.pageNumber).join(', ')}`);

0 commit comments

Comments
 (0)