()
| 681 | |
| 682 | #[test] |
| 683 | fn test_parse_lang_reference_many() { |
| 684 | let content = parse_lang_reference( |
| 685 | " |
| 686 | |
| 687 | # First |
| 688 | |
| 689 | This is the first topic with |
| 690 | a couple of lines. |
| 691 | |
| 692 | # Second |
| 693 | |
| 694 | This is the second topic with just one line. |
| 695 | |
| 696 | # Third |
| 697 | |
| 698 | And this is the last one without EOF.", |
| 699 | ); |
| 700 | let exp_content = vec![ |
| 701 | ("First", "This is the first topic with\na couple of lines."), |
| 702 | ("Second", "This is the second topic with just one line."), |
| 703 | ("Third", "And this is the last one without EOF."), |
| 704 | ]; |
| 705 | assert_eq!(exp_content, content); |
| 706 | } |
| 707 | |
| 708 | #[test] |
| 709 | fn test_parse_lang_reference_ignore_header() { |
nothing calls this directly
no test coverage detected