Skip to content

Commit

Permalink
extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Nov 30, 2024
1 parent 171b5e5 commit 226f700
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/iri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -846,5 +846,17 @@ mod test {
assert!(IRI::try_from("://example.com").is_err());
assert!(IRI::try_from("`http://example.com/").is_err());
assert!(IRI::try_from("http://example.com/\n/path").is_err());
let iri = IRI::try_from("path/").unwrap();
assert_eq!(
iri,
IRI::Reference(RelativeRef {
relative_part: RelativePart::NoScheme(IPath::NoScheme {
snz_nc: "path".into(),
segments: vec!["/".into(),],
},),
query: "".into(),
fragment: "".into(),
},)
);
}
}

0 comments on commit 226f700

Please sign in to comment.