summaryrefslogtreecommitdiff
path: root/semver/tests/deprecation.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2019-01-16 17:41:15 -0800
committerDaniel Mueller <deso@posteo.net>2019-01-16 17:41:15 -0800
commit6cae9704af80f6ffbca2770c5bbf9ab94ef846f8 (patch)
treea86cbf48b2124ea0ed1dc65cbbcbecb6ed2578f3 /semver/tests/deprecation.rs
parent8350ac6afb2d678b74581000a6aafe1994b72231 (diff)
downloadnitrocli-6cae9704af80f6ffbca2770c5bbf9ab94ef846f8.tar.gz
nitrocli-6cae9704af80f6ffbca2770c5bbf9ab94ef846f8.tar.bz2
Remove no longer required dependencies
With the update to rand 0.6.4 we no longer require the dependencies to rustc_version, semver, and semver-parser. Hence, this change removes them. Delete subrepo rustc_version/:rustc_version Delete subrepo semver/:semver Delete subrepo semver-parser/:semver-parser
Diffstat (limited to 'semver/tests/deprecation.rs')
-rw-r--r--semver/tests/deprecation.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/semver/tests/deprecation.rs b/semver/tests/deprecation.rs
deleted file mode 100644
index a5f533a..0000000
--- a/semver/tests/deprecation.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-extern crate semver;
-
-#[test]
-fn test_regressions() {
- use semver::VersionReq;
- use semver::ReqParseError;
-
- let versions = vec![
- (".*", VersionReq::any()),
- ("0.1.0.", VersionReq::parse("0.1.0").unwrap()),
- ("0.3.1.3", VersionReq::parse("0.3.13").unwrap()),
- ("0.2*", VersionReq::parse("0.2.*").unwrap()),
- ("*.0", VersionReq::any()),
- ];
-
- for (version, requirement) in versions.into_iter() {
- let parsed = VersionReq::parse(version);
- let error = parsed.err().unwrap();
-
- assert_eq!(ReqParseError::DeprecatedVersionRequirement(requirement), error);
- }
-}