pub struct TestVersion(pub &'static str, pub usize);
pub const TEST_VERSIONS: &'static [TestVersion] = &[
TestVersion("1", 1),
TestVersion("1.2", 2),
TestVersion("1.2.3.4", 4),
TestVersion("1.2.3.4.5.6.7.8", 8),
TestVersion("0", 1),
TestVersion("0.0.0", 3),
TestVersion("1.0.0", 3),
TestVersion("0.0.1", 3),
TestVersion("", 0),
TestVersion(".", 0),
TestVersion("...", 0),
TestVersion("1.2.dev", 3),
TestVersion("1.2-dev", 3),
TestVersion("1.2.alpha.4", 4),
TestVersion("1.2-alpha-4", 4),
TestVersion("snapshot.1.2", 3),
TestVersion("snapshot-1.2", 3),
];
pub const TEST_VERSIONS_ERROR: &'static [TestVersion] = &[
TestVersion("abc", 1),
TestVersion("alpha.dev.snapshot", 3),
TestVersion("test. .snapshot", 3),
];