We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78475da commit 5aa1004Copy full SHA for 5aa1004
tests/unit_tests.rs
@@ -435,27 +435,6 @@ fn test_offset_err_comment() {
435
}
436
437
438
-#[test]
439
-fn test_offset_err_comment_2_buf() {
440
- let mut r = Reader::from_str("<a><!--b>");
441
- r.trim_text(true);
442
-
443
- let _ = r.read_event().unwrap();
444
- assert_eq!(r.buffer_position(), 3);
445
446
- match r.read_event() {
447
- // error at char 4: no closing --> tag found
448
- Err(e) => assert_eq!(
449
- r.buffer_position(),
450
- 4,
451
- "expecting buf_pos = 4, found {}, err {:?}",
452
453
- e
454
- ),
455
- e => panic!("expecting error, found {:?}", e),
456
- }
457
-}
458
459
#[test]
460
fn test_offset_err_comment_trim_text() {
461
let mut r = Reader::from_str("<a>\r\n <!--b>");
0 commit comments