| 1 |
use crate::prelude::*; |
| 2 |
use url2::Url; |
| 3 |
|
| 4 |
#[test] |
| 5 |
fn url() { |
| 6 |
test!(Url) |
| 7 |
.assert_snapshot() |
| 8 |
.assert_allows_ser_roundtrip( |
| 9 |
["http://example.com", "data:text/plain,test"] |
| 10 |
.iter() |
| 11 |
.map(|s| s.parse().unwrap()), |
| 12 |
) |
| 13 |
.assert_matches_de_roundtrip(arbitrary_values()); |
| 14 |
} |