feat: Add tests for normalize_branch_name function

This commit is contained in:
Kiril Videlov 2024-03-22 13:26:44 +01:00
parent 47f1ea06a1
commit 8075f9e04f
No known key found for this signature in database

View File

@ -3998,4 +3998,11 @@ mod tests {
assert!(joined(10, 13, 13, 16));
assert!(!joined(10, 13, 14, 17));
}
#[test]
fn test_normalize_branch_name() {
assert_eq!(normalize_branch_name("feature/branch"), "feature/branch");
assert_eq!(normalize_branch_name("foo#branch"), "foo#branch");
assert_eq!(normalize_branch_name("foo!branch"), "foo-branch");
}
}