MCPcopy Create free account
hub / github.com/clawshell/clawshell / test_version_ordering

Function test_version_ordering

src/migration/core.rs:118–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117 #[test]
118 fn test_version_ordering() {
119 let v1: ConfigVersion = "0.0.1".parse().unwrap();
120 let v2: ConfigVersion = "0.1.0-alpha.0".parse().unwrap();
121 let v3: ConfigVersion = "0.1.0-alpha.1".parse().unwrap();
122 let v4: ConfigVersion = "0.1.0".parse().unwrap();
123 assert!(v1 < v2);
124 assert!(v2 < v3);
125 assert!(v3 < v4);
126 }
127}

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected