This commit is contained in:
parent
7281340423
commit
d2075dcbd2
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ mod tests {
|
|||
fn test_clean_content_empty() {
|
||||
let content = " ";
|
||||
let result = clean_content(content);
|
||||
assert!(!result.is_ok());
|
||||
assert!(result.is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
@ -23,6 +23,6 @@ mod tests {
|
|||
let result_1 = validate_local_username("name_1");
|
||||
assert!(result_1.is_ok());
|
||||
let result_2 = validate_local_username("name&");
|
||||
assert!(!result_2.is_ok());
|
||||
assert!(result_2.is_err());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue