Use "bytes" instead of "characters" consistently when talking about length of a String.

This commit is contained in:
LukeMathWalker
2024-05-22 12:06:40 +02:00
parent 0bce2485ab
commit 6c217f7b66
22 changed files with 49 additions and 55 deletions

View File

@@ -27,10 +27,7 @@ mod tests {
"A title that's definitely longer than what should be allowed in a development ticket"
.to_string();
let err = TicketTitle::try_from(title).unwrap_err();
assert_eq!(
err.to_string(),
"The title cannot be longer than 50 characters"
);
assert_eq!(err.to_string(), "The title cannot be longer than 50 bytes");
}
#[test]