mirror of
https://github.com/uutils/diffutils.git
synced 2026-06-10 15:48:59 -07:00
Update unit test expectation
This commit is contained in:
+5
-4
@@ -101,10 +101,11 @@ mod tests {
|
||||
|
||||
// Note: The Woman Scientist emoji (π©βπ¬) is a ZWJ sequence combining
|
||||
// the Woman emoji (π©) and the Microscope emoji (π¬). On supported platforms
|
||||
// it is displayed as a single emoji and should have a print size of 2 columns,
|
||||
// but terminal emulators tend to not support this, and display the two emojis
|
||||
// side by side, thus accounting for a print size of 4 columns.
|
||||
assert_tab_expansion("foo\tπ©βπ¬\tbaz", 6, "foo π©βπ¬ baz");
|
||||
// it is displayed as a single emoji and has a print size of 2 columns.
|
||||
// Terminal emulators tend to not support this, and display the two emojis
|
||||
// side by side, thus accounting for a print size of 4 columns, but the
|
||||
// unicode_width crate reports a correct size of 2.
|
||||
assert_tab_expansion("foo\tπ©βπ¬\tbaz", 6, "foo π©βπ¬ baz");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user