Add one more edge-case test for multiline.

This commit is contained in:
KtorZ 2024-08-01 15:21:53 +02:00
parent 91aa435f37
commit 34d5bc71b1
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 5 additions and 0 deletions

View File

@ -194,6 +194,11 @@ mod tests {
assert_eq!(multiline(10, "foo".to_string()), vec!["foo".to_string()]); assert_eq!(multiline(10, "foo".to_string()), vec!["foo".to_string()]);
} }
#[test]
fn multiline_single_line_limit() {
assert_eq!(multiline(3, "foo".to_string()), vec!["foo".to_string()]);
}
#[test] #[test]
fn multiline_many_lines() { fn multiline_many_lines() {
assert_eq!( assert_eq!(