mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-27 20:06:53 -06:00
#698: with plugin API 4 here, "4.0.0" is a valid api version string; the refused one is 5.0.0
This commit is contained in:
@@ -468,6 +468,6 @@ fn api_may_be_a_version_string() {
|
||||
assert_eq!(manifest(json!({"api": "1.0.0"})).unwrap().api, 1);
|
||||
assert_eq!(manifest(json!({"api": "2"})).unwrap().api, 2);
|
||||
assert_eq!(manifest(json!({"api": 2})).unwrap().api, 2);
|
||||
assert!(manifest(json!({"api": "4.0.0"})).is_err());
|
||||
assert!(manifest(json!({"api": "5.0.0"})).is_err());
|
||||
assert!(manifest(json!({"api": "x"})).is_err());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user