field33_rdftk_iri_temporary_fork 0.1.9

This crate provides an implementation of the IRI and URI specifications.
Documentation
use field33_rdftk_iri_temporary_fork::Query;
use proptest::prelude::*;
use std::str::FromStr;

// ------------------------------------------------------------------------------------------------
// API Tests
// ------------------------------------------------------------------------------------------------

#[test]
fn test_default_query() {
    let query = Query::default();
    assert!(query.is_empty());
    assert_eq!(query.value(), "");
    assert_eq!(query.to_string(), "?".to_string());
}

// ------------------------------------------------------------------------------------------------
// Automated Property Tests
// ------------------------------------------------------------------------------------------------

proptest! {
    #[test]
    fn doesnt_crash(s in "\\PC*") {
        let _ = Query::from_str(&s);
    }
}