Test spans are correct after expand_tabs
(
markup: str, tab_size: int, expected_text: str, expected_spans: List[Span]
)
| 825 | ], |
| 826 | ) |
| 827 | def test_tabs_to_spaces_spans( |
| 828 | markup: str, tab_size: int, expected_text: str, expected_spans: List[Span] |
| 829 | ): |
| 830 | """Test spans are correct after expand_tabs""" |
| 831 | text = Text.from_markup(markup) |
| 832 | text.expand_tabs(tab_size) |
| 833 | print(text._spans) |
| 834 | assert text.plain == expected_text |
| 835 | assert text._spans == expected_spans |
| 836 | |
| 837 | |
| 838 | def test_markup_switch(): |
nothing calls this directly
no test coverage detected