File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 👩🔬\t baz" , 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 👩🔬\t baz" , 6 , "foo 👩🔬 baz" ) ;
108109 }
109110
110111 #[ test]
You can’t perform that action at this time.
0 commit comments