Add one more edge-case test for multiline.
This commit is contained in:
@@ -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!(
|
||||||
|
|||||||
Reference in New Issue
Block a user