From f4e186c2946c40ffbc03dfaf383e067333fc0852 Mon Sep 17 00:00:00 2001 From: gennyble Date: Wed, 27 Dec 2023 15:06:29 -0600 Subject: parses inline script/style --- tests/nyble_pages.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/nyble_pages.rs (limited to 'tests/nyble_pages.rs') diff --git a/tests/nyble_pages.rs b/tests/nyble_pages.rs new file mode 100644 index 0000000..14ca1cc --- /dev/null +++ b/tests/nyble_pages.rs @@ -0,0 +1,13 @@ +use cutie::Html; + +#[test] +fn pares_homepage() { + let str = std::fs::read_to_string("tests/nyble.html").unwrap(); + let html = Html::parse(&str); +} + +#[test] +fn parses_grass() { + let str = std::fs::read_to_string("tests/touching_grass.html").unwrap(); + let html = Html::parse(&str); +} -- cgit 1.4.1-3-g733a5