Use "bytes" instead of "characters" consistently when talking about length of a String.
This commit is contained in:
@@ -44,13 +44,13 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "Title cannot be longer than 50 characters")]
|
||||
#[should_panic(expected = "Title cannot be longer than 50 bytes")]
|
||||
fn title_cannot_be_longer_than_fifty_chars() {
|
||||
Ticket::new(overly_long_title(), valid_description(), "To-Do".into());
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "Description cannot be longer than 500 characters")]
|
||||
#[should_panic(expected = "Description cannot be longer than 500 bytes")]
|
||||
fn description_cannot_be_longer_than_500_chars() {
|
||||
Ticket::new(valid_title(), overly_long_description(), "To-Do".into());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user