Skip to content

Commit d8b91fd

Browse files
committed
Update unit test expectation
1 parent 7c9c2a1 commit d8b91fd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/utils.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,11 @@ mod tests {
101101

102102
// Note: The Woman Scientist emoji (👩‍🔬) is a ZWJ sequence combining
103103
// the Woman emoji (👩) and the Microscope emoji (🔬). On supported platforms
104-
// it is displayed as a single emoji and should have a print size of 2 columns,
105-
// but terminal emulators tend to not support this, and display the two emojis
106-
// side by side, thus accounting for a print size of 4 columns.
107-
assert_tab_expansion("foo\t👩‍🔬\tbaz", 6, "foo 👩‍🔬 baz");
104+
// it is displayed as a single emoji and has a print size of 2 columns.
105+
// Terminal emulators tend to not support this, and display the two emojis
106+
// side by side, thus accounting for a print size of 4 columns, but the
107+
// unicode_width crate reports a correct size of 2.
108+
assert_tab_expansion("foo\t👩‍🔬\tbaz", 6, "foo 👩‍🔬 baz");
108109
}
109110

110111
#[test]

0 commit comments

Comments
 (0)