Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiah-shaulov committed Oct 3, 2022
1 parent d9e3f81 commit e625332
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,20 @@ Deno.test
` Lorem ipsum dolor sit amet, consectetur\n adipiscing elit, sed do eiusmod tempor incididunt ut labore et\n dolore magna aliqua.\n`
);
}

for (let i=0; i<30; i++)
{ const esc1 = i==0 ? '' : esc();
assertEquals
( indentAndWrap
( ` \t L${esc1}orem ipsum dolor sit amet, consectetur
\t adipiscing${esc1} elit, sed do eiusmod tempor incididunt ut labore et
\t dolore magna aliqua.${esc1}
`,
{wrapWidth: 100, indent: ' ', ignoreFirstIndent: true, mode: 'term'}
),
` L${esc1}orem ipsum dolor sit amet, consectetur\n adipiscing${esc1} elit, sed do eiusmod tempor incididunt ut labore et\n dolore magna aliqua.${esc1}\n`
);
}
}
);

Expand Down

0 comments on commit e625332

Please sign in to comment.