tildes-parser/tests/group.rs

11 lines
271 B
Rust
Raw Normal View History

2022-10-03 14:25:28 +00:00
use std::fs::read_to_string;
2022-10-16 16:09:04 +00:00
use {insta::assert_debug_snapshot, tildes_parser::Group};
2022-10-03 14:25:28 +00:00
#[test]
fn test_group_parsing() {
let html = read_to_string("tests/samples/group.html").unwrap();
2022-10-16 16:09:04 +00:00
let group = &html.parse::<Group>().unwrap();
2022-10-03 14:25:28 +00:00
assert_debug_snapshot!(group);
}