opml/opml_api/tests/deprecated.rs

12 lines
292 B
Rust
Raw Normal View History

2021-09-27 10:23:50 +00:00
use opml::OPML;
#[test]
#[allow(deprecated)]
fn test_deprecated_functions() {
let xml = r#"<opml version="2.0"><head/><body><outline text="Outline"/></body></opml>"#;
let document = OPML::new(xml).unwrap();
assert_eq!(document.version, "2.0");
assert!(document.to_xml().is_ok());
}