mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
tests: Switch emoji used
widechar_width no longer classifies U+1F41F as widened-in-9, so the
width no longer changes.
Since we're interested in testing the change here, we need a different
emoji.
Just use 🥁, which was introduced in 9 as wide, and therefore widened
in 9.
This commit is contained in:
parent
f1fe6a5e94
commit
2b8fe280e0
@ -93,11 +93,11 @@ string length --visible (set_color red)abc
|
|||||||
begin
|
begin
|
||||||
set -l fish_emoji_width 2
|
set -l fish_emoji_width 2
|
||||||
# This should print the emoji width
|
# This should print the emoji width
|
||||||
string length --visible . 🐟
|
string length --visible . 🥁
|
||||||
# CHECK: 1
|
# CHECK: 1
|
||||||
# CHECK: 2
|
# CHECK: 2
|
||||||
set -l fish_emoji_width 1
|
set -l fish_emoji_width 1
|
||||||
string length --visible . 🐟
|
string length --visible . 🥁
|
||||||
# CHECK: 1
|
# CHECK: 1
|
||||||
# CHECK: 1
|
# CHECK: 1
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user