| 1 | use craterust-analyzer cargo schemars 1.2.2 crate/::preluderust-analyzer cargo schemars 1.2.2 prelude/::*; |
| 2 | use semver1rust-analyzer cargo semver 1.0.28 crate/::Versionrust-analyzer cargo semver 1.0.28 Version#; |
| 3 | |
| 4 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 5 | fn semverrust-analyzer cargo schemars 1.2.2 semver/semver().() { |
| 6 | testrust-analyzer cargo schemars 1.2.2 test!!(Versionrust-analyzer cargo semver 1.0.28 Version#) |
| 7 | .assert_snapshotrust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_snapshot().() |
| 8 | .assert_allows_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_allows_de_roundtrip().( |
| 9 | [ |
| 10 | "1.2.3", |
| 11 | "1.2.3-alpha4", |
| 12 | "1.2.3+build4", |
| 13 | "1.2.3+04", |
| 14 | "1.2.3-1.alpha.2+5.build.4.3-21", |
| 15 | ] |
| 16 | .into_iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/iter/impl#[`[T; N]`][IntoIterator]into_iter().() |
| 17 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(Valuerust-analyzer cargo serde_json 1.0.151 value/Value#::fromrust-analyzer cargo serde_json 1.0.151 value/from/impl#[Value][`From<&str>`]from().), |
| 18 | ) |
| 19 | .assert_rejects_derust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_rejects_de().( |
| 20 | [ |
| 21 | "1.2", |
| 22 | "1.2.3.4", |
| 23 | "1.2.03", |
| 24 | "1.2.3-alpha..", |
| 25 | "1.2.3-alpha.04", |
| 26 | "1.2.3++", |
| 27 | ] |
| 28 | .into_iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/iter/impl#[`[T; N]`][IntoIterator]into_iter().() |
| 29 | .maprust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/iterator/Iterator#map().(Valuerust-analyzer cargo serde_json 1.0.151 value/Value#::fromrust-analyzer cargo serde_json 1.0.151 value/from/impl#[Value][`From<&str>`]from().), |
| 30 | ) |
| 31 | .assert_matches_de_roundtriprust-analyzer cargo schemars 1.2.2 test_helper/impl#[`TestHelper<T>`]assert_matches_de_roundtrip().(arbitrary_valuesrust-analyzer cargo schemars 1.2.2 test_helper/arbitrary_values().()); |
| 32 | } |