Commit 22224a7
committed
Test: Add test for specific-common-specific2-common2-specific3 content
This commit adds a new test, `test__exclude_common_contents__double_specific`, to verify that the `exclude_common_contents` function correctly handles complex cases with multiple common content sections interspersed with specific content.
The test covers the following scenario:
- Specific content 1
- Common content 1
- Specific content 2
- Common content 2
- Specific content 3
The test uses the following fixtures:
- `specific_lines_3`: Provides the specific lines for the third section.
- `readme_content__double_specific`: Generates the README content with the specific-common-specific2-common2-specific3 structure.
The test asserts that all the specific lines from all three sections are preserved in the output, while the common lines from both common content sections are removed. This ensures that the function correctly handles complex scenarios with multiple common and specific content sections.1 parent 5072f64 commit 22224a7
1 file changed
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
473 | 525 | | |
474 | 526 | | |
0 commit comments