mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 23:02:31 +03:00
feat: Add tests for normalize_branch_name
function
This commit is contained in:
parent
47f1ea06a1
commit
8075f9e04f
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user