diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-06-13 12:16:25 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-06-13 12:16:25 +0100 |
| commit | 4a779b8d4fe83a80d99324a947b714c76468a88f (patch) | |
| tree | 71e9cd15e8a76beb4d7ec4145234ae70ec4c8dae /tests/styles/parser | |
| parent | 0d5b27652c119dfaf99fae5f4e624c9efec408b5 (diff) | |
Support style mapping for highlights
Diffstat (limited to 'tests/styles/parser')
| -rw-r--r-- | tests/styles/parser/document_matcher_parser_tests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/styles/parser/document_matcher_parser_tests.py b/tests/styles/parser/document_matcher_parser_tests.py index 1808571..dd613a1 100644 --- a/tests/styles/parser/document_matcher_parser_tests.py +++ b/tests/styles/parser/document_matcher_parser_tests.py @@ -141,6 +141,18 @@ def test_reads_small_caps(): read_document_matcher("small-caps") ) +def test_reads_highlight_without_color(): + assert_equal( + document_matchers.highlight(), + read_document_matcher("highlight") + ) + +def test_reads_highlight_with_color(): + assert_equal( + document_matchers.highlight(color="yellow"), + read_document_matcher("highlight[color='yellow']") + ) + def test_reads_comment_reference(): assert_equal( document_matchers.comment_reference, |
