first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
+23
View File
@@ -0,0 +1,23 @@
use super::*;
#[test]
fn test_parse_valid_app_id() {
let app_id_string = "com.example.App";
let app_id = AppId::parse(app_id_string).expect("should not fail to parse");
assert_eq!(app_id.qualifier(), "com");
assert_eq!(app_id.organization(), "example");
assert_eq!(app_id.application_name(), "App");
assert_eq!(app_id_string, &app_id.to_string());
}
#[test]
fn test_parse_invalid_app_id() {
assert!(
AppId::parse("com.example").is_err(),
"should fail to parse two-part app ID string"
);
assert!(
AppId::parse("com.example.App.Blah").is_err(),
"should fail to parse four-part app ID string"
);
}