Skip to content

Commit 5aa1004

Browse files
committed
Remove duplicated test added in 259ab4b
1 parent 78475da commit 5aa1004

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/unit_tests.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -435,27 +435,6 @@ fn test_offset_err_comment() {
435435
}
436436
}
437437

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-
r.buffer_position(),
453-
e
454-
),
455-
e => panic!("expecting error, found {:?}", e),
456-
}
457-
}
458-
459438
#[test]
460439
fn test_offset_err_comment_trim_text() {
461440
let mut r = Reader::from_str("<a>\r\n <!--b>");

0 commit comments

Comments
 (0)