diff options
| author | Martin Fischer <martin@push-f.com> | 2023-08-30 07:29:23 +0200 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 | 
| commit | 63f945e568c0710e3a97cddaa6264e85d86faa79 (patch) | |
| tree | 45953b0881649488e3ea65976d77e4cf180ff549 | |
| parent | fb7de04e463b8e9e6c19b98c21100936b8bdef06 (diff) | |
test: verify off-by-one missing-semicolon-after-character-reference span
| -rw-r--r-- | tests/test_spans.rs | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/tests/test_spans.rs b/tests/test_spans.rs index 1b6774d..560fe0e 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -245,6 +245,15 @@ fn tests_for_errors_are_sorted() {  }  #[test] +fn error_char_ref_missing_semicolon() { +    let html = "¬"; +    assert_snapshot!(annotate_errors(html), @r###" +    ¬ +       ^ missing-semicolon-after-character-reference +    "###); +} + +#[test]  fn error_char_ref_unknown_named() {      let html = "The pirate says &arrrrr;";      assert_snapshot!(annotate_errors(html), @r###" | 
