Jelajahi Sumber

Test change emoji width

The change in 08281333002079ee65af35bf3f61abf7f81f7cc2 means that the width of emoji are used. I think the issue https://github.com/unicode-rs/unicode-width/issues/4 means that the wrong width is being calculated for emoji, and there happens to be one in the example.
Benjamin Sago 8 tahun lalu
induk
melakukan
43bc16dba2
3 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      xtests/file_names
  2. 1 1
      xtests/file_names_R
  3. 1 1
      xtests/file_names_x

+ 1 - 1
xtests/file_names

@@ -2,5 +2,5 @@ ansi: [\u{1b}[34mblue\u{1b}[0m]  form-feed: [\u{c}]
 ascii: hello                     invalid-utf8-1: [�]     new-line: [\n]
 backspace: [\u{8}]               invalid-utf8-2: [�(]    return: [\r]
 bell: [\u{7}]                    invalid-utf8-3: [�(]    tab: [\t]
-emoji: [🆒]                       invalid-utf8-4: [�(�(]  utf-8: pâté
+emoji: [🆒]                      invalid-utf8-4: [�(�(]  utf-8: pâté
 escape: [\u{1b}]                 links                   vertical-tab: [\u{b}]

+ 1 - 1
xtests/file_names_R

@@ -2,7 +2,7 @@ ansi: [\u{1b}[34mblue\u{1b}[0m]  form-feed: [\u{c}]
 ascii: hello                     invalid-utf8-1: [�]     new-line: [\n]
 backspace: [\u{8}]               invalid-utf8-2: [�(]    return: [\r]
 bell: [\u{7}]                    invalid-utf8-3: [�(]    tab: [\t]
-emoji: [🆒]                       invalid-utf8-4: [�(�(]  utf-8: pâté
+emoji: [🆒]                      invalid-utf8-4: [�(�(]  utf-8: pâté
 escape: [\u{1b}]                 links                   vertical-tab: [\u{b}]
 
 /testcases/file-names/links:

+ 1 - 1
xtests/file_names_x

@@ -1,5 +1,5 @@
 ansi: [\u{1b}[34mblue\u{1b}[0m]  ascii: hello            backspace: [\u{8}]
-bell: [\u{7}]                    emoji: [🆒]              escape: [\u{1b}]
+bell: [\u{7}]                    emoji: [🆒]             escape: [\u{1b}]
 form-feed: [\u{c}]               invalid-utf8-1: [�]     invalid-utf8-2: [�(]
 invalid-utf8-3: [�(]             invalid-utf8-4: [�(�(]  links
 new-line-dir: [\n]               new-line: [\n]          return: [\r]