Skip to content

Commit ec67d22

Browse files
committed
more: adapt test to change in unicode-width
1 parent 46d5d63 commit ec67d22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/uu/more/src/more.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -700,15 +700,15 @@ mod tests {
700700
test_string.push_str("👩🏻‍🔬");
701701
}
702702

703-
let lines = break_line(&test_string, 80);
703+
let lines = break_line(&test_string, 31);
704704

705705
let widths: Vec<usize> = lines
706706
.iter()
707707
.map(|s| UnicodeWidthStr::width(&s[..]))
708708
.collect();
709709

710-
// Each 👩🏻‍🔬 is 6 character width it break line to the closest number to 80 => 6 * 13 = 78
711-
assert_eq!((78, 42), (widths[0], widths[1]));
710+
// Each 👩🏻‍🔬 is 2 character width, break line to the closest even number to 31
711+
assert_eq!((30, 10), (widths[0], widths[1]));
712712
}
713713

714714
#[test]

0 commit comments

Comments
 (0)