textlane-html 0.5.0

Textlane's HTML plugins: parsing, transforms, sanitizing and serializing
Documentation
1
2
3
4
5
6
7
8
9
10
use super::*;

#[test]
fn fails_without_a_natural_language_parser() {
    let mut context = Attach::default();
    let result = ToNaturalLanguage.attach(&mut context);
    assert!(
        matches!(result, Err(error) if error.code == "missing-natural-language-parser")
    );
}