Files
Notes/notes-service/vendor/schemars/tests/integration/url.rs
T
2026-08-01 16:11:49 +03:00

15 lines
337 B
Rust

use crate::prelude::*;
use url2::Url;
#[test]
fn url() {
test!(Url)
.assert_snapshot()
.assert_allows_ser_roundtrip(
["http://example.com", "data:text/plain,test"]
.iter()
.map(|s| s.parse().unwrap()),
)
.assert_matches_de_roundtrip(arbitrary_values());
}