Skip to content

Commit

Permalink
refactor test for issue801
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueGreenMagick committed Sep 19, 2024
1 parent 9fc50f4 commit 3d0c778
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,9 @@ fn issue776() {
/// Regression test for https://github.com/tafia/quick-xml/issues/801
#[test]
fn issue801() {
let xml = BufReader::with_capacity(4, b"<!DOCTYPE X [<!-- --><!ENTITY a \"a\">]>" as &[u8]);
let mut reader = Reader::from_reader(xml);
let xml = b"<!DOCTYPE X [<!-- --><!ENTITY a \"a\">]>";
let reader = BufReader::with_capacity(4, &xml[..]);
let mut reader = Reader::from_reader(reader);
let mut buf = Vec::new();
loop {
buf.clear();
Expand Down

0 comments on commit 3d0c778

Please sign in to comment.