2022-09-29 23:29:46 +00:00
|
|
|
use std::fs::read_to_string;
|
|
|
|
|
2022-10-16 16:09:04 +00:00
|
|
|
use {insta::assert_debug_snapshot, tildes_parser::GroupList};
|
2022-09-29 23:29:46 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn test_group_list_parsing() {
|
|
|
|
let html = read_to_string("tests/samples/group_list.html").unwrap();
|
2022-10-16 16:09:04 +00:00
|
|
|
let group_list = html.parse::<GroupList>().unwrap();
|
2022-09-29 23:29:46 +00:00
|
|
|
assert_debug_snapshot!(group_list);
|
|
|
|
}
|